函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gen_pool_create - create a new special memory pool*@min_alloc_order: log base 2 of number of bytes each bitmap bit represents*@nid: node id of the node the pool structure should be allocated on, or -1* Create a new special memory pool that can be used to

函数原型:struct gen_pool *gen_pool_create(int min_alloc_order, int nid)

返回类型:struct gen_pool

参数:

类型参数名称
intmin_alloc_order
intnid
155  pool等于kmalloc_node(sizeof(structgen_pool), GFP_KERNEL, nid)
156  如果(pool != NULL)则
157  spin_lock_init( & lock)
158  初始化链表头
159  minimum allocation order 等于min_alloc_order
160  allocation function 等于gen_pool_first_fit
161  data = NULL
162  name = NULL
164  返回:pool
调用者
名称描述
devm_gen_pool_createdevm_gen_pool_create - managed gen_pool_create*@dev: device that provides the gen_pool*@min_alloc_order: log base 2 of number of bytes each bitmap bit represents*@nid: node selector for allocated gen_pool, %NUMA_NO_NODE for all nodes*@name: name of a
mce_gen_pool_create