linux-4.4.1/ion_share_dma_buf_fd()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#hfe0a1ad]
#backlinks
*説明 [#xf36b8be]
-パス: [[linux-4.4.1/drivers/staging/android/ion/ion.c]]
-FIXME: これは何?
--説明
**引数 [#vdbb3452]
-struct ion_client *client
--
--[[linux-4.4.1/ion_client]]
-struct ion_handle *handle
--
--[[linux-4.4.1/ion_handle]]
**返り値 [#ebcc5fe6]
-int
--
**参考 [#t037fe8e]
*実装 [#o694e143]
int ion_share_dma_buf_fd(struct ion_client *client, stru...
{
struct dma_buf *dmabuf;
int fd;
-
--[[linux-4.4.1/dma_buf]]
dmabuf = ion_share_dma_buf(client, handle);
if (IS_ERR(dmabuf))
return PTR_ERR(dmabuf);
-
--[[linux-4.4.1/ion_share_dma_buf()]]
--[[linux-4.4.1/IS_ERR()]]
--[[linux-4.4.1/PTR_ERR()]]
fd = dma_buf_fd(dmabuf, O_CLOEXEC);
if (fd < 0)
dma_buf_put(dmabuf);
-
--[[linux-4.4.1/dma_buf_fd()]]
--[[linux-4.4.1/dma_buf_put()]]
return fd;
}
EXPORT_SYMBOL(ion_share_dma_buf_fd);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#ze21986b]
終了行:
*参照元 [#hfe0a1ad]
#backlinks
*説明 [#xf36b8be]
-パス: [[linux-4.4.1/drivers/staging/android/ion/ion.c]]
-FIXME: これは何?
--説明
**引数 [#vdbb3452]
-struct ion_client *client
--
--[[linux-4.4.1/ion_client]]
-struct ion_handle *handle
--
--[[linux-4.4.1/ion_handle]]
**返り値 [#ebcc5fe6]
-int
--
**参考 [#t037fe8e]
*実装 [#o694e143]
int ion_share_dma_buf_fd(struct ion_client *client, stru...
{
struct dma_buf *dmabuf;
int fd;
-
--[[linux-4.4.1/dma_buf]]
dmabuf = ion_share_dma_buf(client, handle);
if (IS_ERR(dmabuf))
return PTR_ERR(dmabuf);
-
--[[linux-4.4.1/ion_share_dma_buf()]]
--[[linux-4.4.1/IS_ERR()]]
--[[linux-4.4.1/PTR_ERR()]]
fd = dma_buf_fd(dmabuf, O_CLOEXEC);
if (fd < 0)
dma_buf_put(dmabuf);
-
--[[linux-4.4.1/dma_buf_fd()]]
--[[linux-4.4.1/dma_buf_put()]]
return fd;
}
EXPORT_SYMBOL(ion_share_dma_buf_fd);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#ze21986b]
ページ名: