函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:struct dma_pool *dmam_pool_create(const char *name, struct device *dev, size_t size, size_t align, size_t allocation)

返回类型:struct dma_pool

参数:

类型参数名称
const char *name
struct device *dev
size_tsize
size_talign
size_tallocation
511  ptr等于devres_alloc(Managed DMA pool, ptr的长度, GFP_KERNEL)
512  如果非ptr则返回:NULL
515  pool等于ptr等于dma_pool_create - Creates a pool of consistent memory blocks, for dma
516  如果pooldevres_add(dev, ptr)
518  否则devres_free(ptr)
521  返回:pool