'\" t .\" Title: struct dma_buf .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT DMA_BUF" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_dma_buf \- shared buffer object .SH "SYNOPSIS" .sp .nf 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; }; .fi .SH "MEMBERS" .PP size .RS 4 size of the buffer .RE .PP file .RS 4 file pointer used for sharing buffers across, and for refcounting\&. .RE .PP attachments .RS 4 list of dma_buf_attachment that denotes all devices attached\&. .RE .PP ops .RS 4 dma_buf_ops associated with this buffer object\&. .RE .PP lock .RS 4 used internally to serialize list manipulation, attach/detach and vmap/unmap .RE .PP vmapping_counter .RS 4 used internally to refcnt the vmaps .RE .PP vmap_ptr .RS 4 the current vmap ptr if vmapping_counter > 0 .RE .PP exp_name .RS 4 name of the exporter; useful for debugging\&. .RE .PP owner .RS 4 pointer to exporter module; used for refcounting when exporter is a kernel module\&. .RE .PP list_node .RS 4 node for dma_buf accounting and debugging\&. .RE .PP priv .RS 4 exporter specific private data for this buffer object\&. .RE .PP resv .RS 4 reservation object linked to this dma\-buf .RE .PP poll .RS 4 for userspace poll support .RE .PP cb_excl .RS 4 for userspace poll support .RE .PP cb_shared .RS 4 for userspace poll support .RE .SH "COPYRIGHT" .br