函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This initializes kmem_cache_node or resizes various caches for all nodes.

函数原型:static int setup_kmem_cache_nodes(struct kmem_cache *cachep, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct kmem_cache *cachep
gfp_tgfp
3819  for_each_online_node(node)
3820  ret等于setup_kmem_cache_node(cachep, node, gfp, true)
3821  如果ret则转到:fail
3826  返回:0
3828  fail :
3829  如果非链表后项
3831  node自减
3832 node大于等于0循环
3833  n等于get_node(cachep, node)
3834  如果n
3835  释放内存
3837  释放内存
3838  node[node] = NULL
3840  node自减
3843  返回:负ENOMEM
调用者
名称描述
__do_tune_cpucacheAlways called with the slab_mutex held