Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:43:52
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:swap the static kmem_cache_node with kmalloced memory

Proto:static void __init init_list(struct kmem_cache *cachep, struct kmem_cache_node *list, int nodeid)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
struct kmem_cache_node *list
intnodeid
1207  ptr = kmalloc_node(sizeof(structkmem_cache_node), GFP_NOWAIT, nodeid)
1208  BUG_ON(!ptr)
1210  No 3D Now!(ptr, list, sizeof(structkmem_cache_node))
1214  Process spin lock initialization( & list_lock)
1216  MAKE_ALL_LISTS(cachep, ptr, nodeid)
1217  node[nodeid] = ptr
Caller
NameDescribe
kmem_cache_initInitialisation. Called after the page allocator have been initialised and* before smp_init().