Skip to content
Commit cf394fc5 authored by Fredrik Noring's avatar Fredrik Noring Committed by Christoph Hellwig
Browse files

lib/genalloc.c: Add algorithm, align and zeroed family of DMA allocators



Provide the algorithm option to DMA allocators as well, along with
convenience variants for zeroed and aligned memory. The following
four functions are added:

- gen_pool_dma_alloc_algo()
- gen_pool_dma_alloc_align()
- gen_pool_dma_zalloc_algo()
- gen_pool_dma_zalloc_align()

Signed-off-by: default avatarFredrik Noring <noring@nocrew.org>
Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent b1acd4b8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment