Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-28 15:47:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:new_slab

Proto:static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)

Type:struct page

Parameter:

TypeParameterName
struct kmem_cache *s
gfp_tflags
intnode
1699  If Value for the false possibility is greater at compile time(flags & Do not use these with a slab allocator ) Then
1700  invalid_mask = flags & Do not use these with a slab allocator
1701  flags &= ~Do not use these with a slab allocator
1702  pr_warn("Unexpected gfp: %#x (%pGg). Fixing up to gfp: %#x (%pGg). Fix your code!\n", invalid_mask, & invalid_mask, flags, & flags)
1704  dump_stack()
1707  Return allocate_slab(s, flags & (The set of flags that only affect watermark checking and reclaim* behaviour. This is used by the MM to obey the caller constraints* about IO, FS and watermark checking while ignoring placement* hints such as HIGHMEM usage. | Control allocation cpuset and node placement constraints ), node)
Caller
NameDescribe
new_slab_objects
early_kmem_cache_node_allocNo kmalloc_node yet so do it by hand. We know that this is the first* slab on the node for this slabcache. There are no concurrent accesses* possible.* Note that this function only works on the kmem_cache_node* when allocating for the kmem_cache_node