linux-4.4.1/dma_buf_fd()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#we3198a3]
#backlinks
*説明 [#j320dee9]
-パス: [[linux-4.4.1/drivers/dma-buf/dma-buf.c]]
-FIXME: これは何?
--説明
**引数 [#kfbabd5b]
-struct dma_buf *dmabuf
--
--[[linux-4.4.1/dma_buf]]
-int flags
--
**返り値 [#sa605d79]
-int
--ファイルディスクリプタ
**参考 [#v1dbd6e2]
*実装 [#m05296de]
/**
* dma_buf_fd - returns a file descriptor for the given ...
* @dmabuf: [in] pointer to dma_buf for which fd ...
* @flags: [in] flags to give to fd
*
* On success, returns an associated 'fd'. Else, returns...
*/
int dma_buf_fd(struct dma_buf *dmabuf, int flags)
{
int fd;
if (!dmabuf || !dmabuf->file)
return -EINVAL;
fd = get_unused_fd_flags(flags);
if (fd < 0)
return fd;
-
--[[linux-4.4.1/get_unused_fd_flags()]]
fd_install(fd, dmabuf->file);
-
--[[linux-4.4.1/fd_install()]]
return fd;
}
EXPORT_SYMBOL_GPL(dma_buf_fd);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#nea85386]
終了行:
*参照元 [#we3198a3]
#backlinks
*説明 [#j320dee9]
-パス: [[linux-4.4.1/drivers/dma-buf/dma-buf.c]]
-FIXME: これは何?
--説明
**引数 [#kfbabd5b]
-struct dma_buf *dmabuf
--
--[[linux-4.4.1/dma_buf]]
-int flags
--
**返り値 [#sa605d79]
-int
--ファイルディスクリプタ
**参考 [#v1dbd6e2]
*実装 [#m05296de]
/**
* dma_buf_fd - returns a file descriptor for the given ...
* @dmabuf: [in] pointer to dma_buf for which fd ...
* @flags: [in] flags to give to fd
*
* On success, returns an associated 'fd'. Else, returns...
*/
int dma_buf_fd(struct dma_buf *dmabuf, int flags)
{
int fd;
if (!dmabuf || !dmabuf->file)
return -EINVAL;
fd = get_unused_fd_flags(flags);
if (fd < 0)
return fd;
-
--[[linux-4.4.1/get_unused_fd_flags()]]
fd_install(fd, dmabuf->file);
-
--[[linux-4.4.1/fd_install()]]
return fd;
}
EXPORT_SYMBOL_GPL(dma_buf_fd);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#nea85386]
ページ名: