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:
Pavel Begunkov 2026-10-16 10:58:31 +01:00 committed by Jens Axboe
parent 44e75dbecb
commit aeef964d73

View File

@ -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)
{