Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_alien_cache

Proto:static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp)

Type:struct alien_cache

Parameter:

TypeParameterName
intnode
intlimit
gfp_tgfp
701  If limit > 1 Then limit = 12
703  alc_ptr = kcalloc_node(nr_node_ids, size of * , gfp, node)
704  If Not alc_ptr Then Return NULL
707  for_each_node(i)
708  If i == node || Not node_online(i) Then Continue
710  alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp)
711  If Not alc_ptr[i] Then
712  When i >= 0 cycle kfree(alc_ptr[i])
714  kfree(alc_ptr)
715  Return NULL
718  Return alc_ptr
Caller
NameDescribe
setup_kmem_cache_node