Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_first_slab

Proto:static struct page *get_first_slab(struct kmem_cache_node *n, bool pfmemalloc)

Type:struct page

Parameter:

TypeParameterName
struct kmem_cache_node *n
boolpfmemalloc
2885  assert_spin_locked( & list_lock)
2886  page = list_first_entry_or_null - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.( & slabs_partial, structpage, slab_list)
2888  If Not page Then
2889  free_touched = 1
2890  page = list_first_entry_or_null - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.( & slabs_free, structpage, slab_list)
2892  If page Then free_slabs--
2896  If sk_memalloc_socks() Then page = Try to find non-pfmemalloc slab if needed
2899  Return page
Caller
NameDescribe
cache_alloc_pfmemalloc
cache_alloc_refill
____cache_alloc_nodeA interface to enable slab creation on nodeid