diff options
| author | Petr Tesarik <ptesarik@suse.com> | 2025-06-27 13:10:11 +0300 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2025-07-01 22:55:37 +0300 |
| commit | fc9a099567813a9fef0da07b94ecb8dee64703c4 (patch) | |
| tree | 6baad4f208f03abdb6a982d40f3e5cfc5b56518c /include | |
| parent | 6381b9d940a05642977c15cb776ad0569a502bea (diff) | |
| download | linux-fc9a099567813a9fef0da07b94ecb8dee64703c4.tar.xz | |
docs: dma-api: add a kernel-doc comment for dma_pool_zalloc()
Document the dma_pool_zalloc() wrapper.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
[jc: fixed up dma_pool_alloc() reference in dmapool.h]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250627101015.1600042-5-ptesarik@suse.com
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dmapool.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/dmapool.h b/include/linux/dmapool.h index 06c4de602b2f..7d40b51933d1 100644 --- a/include/linux/dmapool.h +++ b/include/linux/dmapool.h @@ -60,6 +60,14 @@ static inline struct dma_pool *dma_pool_create(const char *name, NUMA_NO_NODE); } +/** + * dma_pool_zalloc - Get a zero-initialized block of DMA coherent memory. + * @pool: dma pool that will produce the block + * @mem_flags: GFP_* bitmask + * @handle: pointer to dma address of block + * + * Same as dma_pool_alloc(), but the returned memory is zeroed. + */ static inline void *dma_pool_zalloc(struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle) { |
