*参照元 [#m1a54649]
#backlinks

*説明 [#yfc4b859]
-パス: [[linux-4.4.1/drivers/dma-buf/dma-buf.c]]

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


**引数 [#p6a53d76]
-struct dma_buf_attachment *attach
--
--[[linux-4.4.1/dma_buf_attachment]]
-struct sg_table *sg_table
--
--[[linux-4.4.1/sg_table]]
-enum dma_data_direction direction
--
--[[linux-4.4.1/dma_data_direction]]


**返り値 [#x8dfd0c5]
-なし


**参考 [#f08287a9]


*実装 [#oc9a6b31]
 /**
  * dma_buf_unmap_attachment - unmaps and decreases usecount of the buffer;might
  * deallocate the scatterlist associated. Is a wrapper for unmap_dma_buf() of
  * dma_buf_ops.
  * @attach:     [in]    attachment to unmap buffer from
  * @sg_table:   [in]    scatterlist info of the buffer to unmap
  * @direction:  [in]    direction of DMA transfer
  *
  */
 void dma_buf_unmap_attachment(struct dma_buf_attachment *attach,
                                 struct sg_table *sg_table,
                                 enum dma_data_direction direction)
 {
         might_sleep();
 
-
--[[linux-4.4.1/might_sleep()]]

         if (WARN_ON(!attach || !attach->dmabuf || !sg_table))
                 return;
 
-
--[[linux-4.4.1/WARN_ON()]]

         attach->dmabuf->ops->unmap_dma_buf(attach, sg_table,
                                                 direction);
-
--attach->dmabuf は struct dma_buf * 型
--[[linux-4.4.1/dma_buf]]
--attach->dmabuf->ops は const struct dma_buf_ops * 型
--[[linux-4.4.1/dma_buf_ops]]

 }
 EXPORT_SYMBOL_GPL(dma_buf_unmap_attachment);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]


*コメント [#h039fc62]


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