struct dma_buf — shared buffer object
struct dma_buf { size_t size; struct file * file; struct list_head attachments; const struct dma_buf_ops * ops; struct mutex lock; unsigned vmapping_counter; void * vmap_ptr; const char * exp_name; struct module * owner; struct list_head list_node; void * priv; struct reservation_object * resv; wait_queue_head_t poll; struct dma_buf_poll_cb_t cb_excl; struct dma_buf_poll_cb_t cb_shared; };
size of the buffer
file pointer used for sharing buffers across, and for refcounting.
list of dma_buf_attachment that denotes all devices attached.
dma_buf_ops associated with this buffer object.
used internally to serialize list manipulation, attach/detach and vmap/unmap
used internally to refcnt the vmaps
the current vmap ptr if vmapping_counter > 0
name of the exporter; useful for debugging.
pointer to exporter module; used for refcounting when exporter is a kernel module.
node for dma_buf accounting and debugging.
exporter specific private data for this buffer object.
reservation object linked to this dma-buf
for userspace poll support
for userspace poll support
for userspace poll support