函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pool_alloc_page

函数原型:static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags)

返回类型:struct dma_page

参数:

类型参数名称
struct dma_pool *pool
gfp_tmem_flags
225  page等于kmalloc(page的长度, mem_flags)
226  如果非page则返回:NULL
228  vaddr等于dma_alloc_coherent(dev, allocation, & dma, mem_flags)
230  如果vaddr
234  pool_initialise_page(pool, page)
235  in_use等于0
236  offset等于0
237  否则
238  释放内存
239  page = NULL
241  返回:page
调用者
名称描述
dma_pool_allocdma_pool_alloc - get a block of consistent memory*@pool: dma pool that will produce the block*@mem_flags: GFP_* bitmask*@handle: pointer to dma address of block* Return: the kernel virtual address of a currently unused block,