linux-4.4.1/dma_buf_map_attachment()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#raba8d02]
#backlinks
*説明 [#s8c8a8b7]
-パス: [[linux-4.4.1/drivers/dma-buf/dma-buf.c]]
-FIXME: これは何?
--説明
**引数 [#n6edc4fb]
-struct dma_buf_attachment *attach
--
--[[linux-4.4.1/dma_buf_attachment]]
-enum dma_data_direction direction
--
--[[linux-4.4.1/dma_data_direction]]
**返り値 [#p0365133]
-struct sg_table *
--
--[[linux-4.4.1/sg_table]]
**参考 [#cc923b87]
*実装 [#neb7fcb3]
/**
* dma_buf_map_attachment - Returns the scatterlist tabl...
* mapped into _device_ address space. Is a wrapper for ...
* dma_buf_ops.
* @attach: [in] attachment whose scatterlist is ...
* @direction: [in] direction of DMA transfer
*
* Returns sg_table containing the scatterlist to be ret...
* on error.
*/
struct sg_table *dma_buf_map_attachment(struct dma_buf_a...
enum dma_data_di...
{
struct sg_table *sg_table = ERR_PTR(-EINVAL);
-
--[[linux-4.4.1/ERR_PTR()]]
might_sleep();
-
--[[linux-4.4.1/might_sleep()]]
if (WARN_ON(!attach || !attach->dmabuf))
return ERR_PTR(-EINVAL);
-
--[[linux-4.4.1/WARN_ON()]]
sg_table = attach->dmabuf->ops->map_dma_buf(atta...
if (!sg_table)
sg_table = ERR_PTR(-ENOMEM);
-
--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]]
return sg_table;
}
EXPORT_SYMBOL_GPL(dma_buf_map_attachment);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#g929839d]
終了行:
*参照元 [#raba8d02]
#backlinks
*説明 [#s8c8a8b7]
-パス: [[linux-4.4.1/drivers/dma-buf/dma-buf.c]]
-FIXME: これは何?
--説明
**引数 [#n6edc4fb]
-struct dma_buf_attachment *attach
--
--[[linux-4.4.1/dma_buf_attachment]]
-enum dma_data_direction direction
--
--[[linux-4.4.1/dma_data_direction]]
**返り値 [#p0365133]
-struct sg_table *
--
--[[linux-4.4.1/sg_table]]
**参考 [#cc923b87]
*実装 [#neb7fcb3]
/**
* dma_buf_map_attachment - Returns the scatterlist tabl...
* mapped into _device_ address space. Is a wrapper for ...
* dma_buf_ops.
* @attach: [in] attachment whose scatterlist is ...
* @direction: [in] direction of DMA transfer
*
* Returns sg_table containing the scatterlist to be ret...
* on error.
*/
struct sg_table *dma_buf_map_attachment(struct dma_buf_a...
enum dma_data_di...
{
struct sg_table *sg_table = ERR_PTR(-EINVAL);
-
--[[linux-4.4.1/ERR_PTR()]]
might_sleep();
-
--[[linux-4.4.1/might_sleep()]]
if (WARN_ON(!attach || !attach->dmabuf))
return ERR_PTR(-EINVAL);
-
--[[linux-4.4.1/WARN_ON()]]
sg_table = attach->dmabuf->ops->map_dma_buf(atta...
if (!sg_table)
sg_table = ERR_PTR(-ENOMEM);
-
--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]]
return sg_table;
}
EXPORT_SYMBOL_GPL(dma_buf_map_attachment);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#g929839d]
ページ名: