函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:17:41
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:swap the static kmem_cache_node with kmalloced memory

函数原型:static void __init init_list(struct kmem_cache *cachep, struct kmem_cache_node *list, int nodeid)

返回类型:void

参数:

类型参数名称
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  内存复制(ptr, list, sizeof(structkmem_cache_node))
1214  spin_lock_init( & list_lock)
1216  MAKE_ALL_LISTS(cachep, ptr, nodeid)
1217  node[nodeid]等于ptr
调用者
名称描述
kmem_cache_init设置高速缓存