Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dmam_pool_create - Managed dma_pool_create()*@name: name of pool, for diagnostics*@dev: device that will be doing the DMA*@size: size of the blocks in this pool

Proto:struct dma_pool *dmam_pool_create(const char *name, struct device *dev, size_t size, size_t align, size_t allocation)

Type:struct dma_pool

Parameter:

TypeParameterName
const char *name
struct device *dev
size_tsize
size_talign
size_tallocation
511  ptr = devres_alloc(Managed DMA pool, size of ptr , GFP_KERNEL)
512  If Not ptr Then Return NULL
515  pool = ptr = dma_pool_create - Creates a pool of consistent memory blocks, for dma
516  If pool Then devres_add(dev, ptr)
518  Else devres_free(ptr)
521  Return pool