函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\genalloc.c Create Date:2022-07-27 07:54:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:gen_pool_dma_alloc_algo - allocate special memory from the pool for DMA* usage with the given pool algorithm*@pool: pool to allocate from*@size: number of bytes to allocate from the pool*@dma: DMA-view physical address return value

函数原型:void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size, dma_addr_t *dma, genpool_algo_t algo, void *data)

返回类型:void

参数:

类型参数名称
struct gen_pool *pool
size_tsize
dma_addr_t *dma
genpool_algo_talgo
void *data
365  如果非pool则返回:NULL
368  vaddr等于gen_pool_alloc_algo(pool, size, algo, data)
369  如果非vaddr则返回:NULL
372  如果dmadma等于返回内存动态地址
375  返回:vaddr
调用者
名称描述
gen_pool_dma_allocgen_pool_dma_alloc - allocate special memory from the pool for DMA usage*@pool: pool to allocate from*@size: number of bytes to allocate from the pool*@dma: dma-view physical address return value. Use %NULL if unneeded.
gen_pool_dma_alloc_aligngen_pool_dma_alloc_align - allocate special memory from the pool for DMA* usage with the given alignment*@pool: pool to allocate from*@size: number of bytes to allocate from the pool*@dma: DMA-view physical address return value
gen_pool_dma_zalloc_algogen_pool_dma_zalloc_algo - allocate special zeroed memory from the pool for* DMA usage with the given pool algorithm*@pool: pool to allocate from*@size: number of bytes to allocate from the pool*@dma: DMA-view physical address return value