Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\dmapool.c Create Date:2022-07-28 15:24:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pool_alloc_page

Proto:static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags)

Type:struct dma_page

Parameter:

TypeParameterName
struct dma_pool *pool
gfp_tmem_flags
225  page = kmalloc( size of page , mem_flags)
226  If Not page Then Return NULL
228  vaddr = dma_alloc_coherent(dev, allocation, & dma, mem_flags)
230  If vaddr Then
234  pool_initialise_page(pool, page)
235  in_use = 0
236  offset = 0
237  Else
238  kfree(page)
239  page = NULL
241  Return page
Caller
NameDescribe
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,