Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This initializes kmem_cache_node or resizes various caches for all nodes.

Proto:static int setup_kmem_cache_nodes(struct kmem_cache *cachep, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct kmem_cache *cachep
gfp_tgfp
3819  for_each_online_node(node)
3820  ret = setup_kmem_cache_node(cachep, node, gfp, true)
3821  If ret Then Go to fail
3826  Return 0
3828  fail :
3829  If Not next Then
3831  node--
3832  When node >= 0 cycle
3833  n = get_node(cachep, node)
3834  If n Then
3835  kfree(shared)
3837  kfree(n)
3838  node[node] = NULL
3840  node--
3843  Return -ENOMEM
Caller
NameDescribe
__do_tune_cpucacheAlways called with the slab_mutex held