mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
dma-buf-io: document dma_buf_io_init_map
Add a kerneldoc for dma_buf_io_init_map(). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/a9fdfbe6e447ac583f4d3a3f981b203141a624c4.1792144609.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
44e75dbecb
commit
aeef964d73
|
|
@ -43,6 +43,18 @@ static void dma_buf_io_kill_map(struct dma_buf_io_ctx *ctx)
|
|||
dma_buf_io_map_release(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* dma_buf_io_init_map - Initialise the map.
|
||||
* @ctx: [in] dma-buf I/O context the map is created for
|
||||
* @map: [in] dma-buf I/O map
|
||||
* @sgt: [in] the backing scatter-gather table
|
||||
*
|
||||
* Importer's helper that initialises @map for the provided I/O context
|
||||
* and scatter-gather table. The importer should call it once for each map
|
||||
* on creation.
|
||||
*
|
||||
* Return: 0 on success, or a negative errno code otherwise.
|
||||
*/
|
||||
int dma_buf_io_init_map(struct dma_buf_io_ctx *ctx, struct dma_buf_io_map *map,
|
||||
struct sg_table *sgt)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user