*参照元 [#de5a2a99]
#backlinks

*説明 [#ze80d343]
-パス: [[linux-4.4.1/include/linux/dma-buf.h]]

-FIXME: これは何?
--説明


**参考 [#r7a68c3c]


*実装 [#i9d41adc]
 /**
  * struct dma_buf - shared buffer object
  * @size: size of the buffer
  * @file: file pointer used for sharing buffers across, and for refcounting.
  * @attachments: list of dma_buf_attachment that denotes all devices attached.
  * @ops: dma_buf_ops associated with this buffer object.
  * @exp_name: name of the exporter; useful for debugging.
  * @owner: pointer to exporter module; used for refcounting when exporter is a
  *         kernel module.
  * @list_node: node for dma_buf accounting and debugging.
  * @priv: exporter specific private data for this buffer object.
  * @resv: reservation object linked to this dma-buf
  */
 struct dma_buf {
         size_t size;
         struct file *file;
-
--[[linux-4.4.1/file]]

         struct list_head attachments;
-
--[[linux-4.4.1/list_head]]

         const struct dma_buf_ops *ops;
-
--[[linux-4.4.1/dma_buf_ops]]

         /* mutex to serialize list manipulation, attach/detach and vmap/unmap */
         struct mutex lock;
-
--[[linux-4.4.1/mutex]]

         unsigned vmapping_counter;
         void *vmap_ptr;
         const char *exp_name;
         struct module *owner;
-
--[[linux-4.4.1/module]]

         struct list_head list_node;
         void *priv;
         struct reservation_object *resv;
 
-
--[[linux-4.4.1/reservation_object]]

         /* poll support */
         wait_queue_head_t poll;
 
-
--[[linux-4.4.1/wait_queue_head_t]]

         struct dma_buf_poll_cb_t {
                 struct fence_cb cb;
                 wait_queue_head_t *poll;
 
                 unsigned long active;
         } cb_excl, cb_shared;
-
--[[linux-4.4.1/fence_cb]]

 };


*コメント [#v111bc4d]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS