Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\genalloc.c Create Date:2022-07-28 06:56:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:struct gen_pool *gen_pool_create(int min_alloc_order, int nid)

Type:struct gen_pool

Parameter:

TypeParameterName
intmin_alloc_order
intnid
155  pool = kmalloc_node(sizeof(structgen_pool), GFP_KERNEL, nid)
156  If (pool != NULL) Then
157  Process spin lock initialization( & lock)
158  Initialization list head
159  minimum allocation order = min_alloc_order
160  allocation function = gen_pool_first_fit
161  data = NULL
162  name = NULL
164  Return pool
Caller
NameDescribe
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