Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:new_slab_objects

Proto:static inline void *new_slab_objects(struct kmem_cache *s, gfp_t flags, int node, struct kmem_cache_cpu **pc)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
gfp_tflags
intnode
struct kmem_cache_cpu **pc
2448  c = pc
2451  WARN_ON_ONCE(ctor && (flags & __GFP_ZERO))
2453  freelist = Get a partial page, lock it and return it.
2455  If freelist Then Return freelist
2458  page = new_slab(s, flags, node)
2459  If page Then
2460  c = raw_cpu_ptr(cpu_slab)
2461  If The slab from which we are allocating Then flush_slab(s, c)
2468  freelist = first free object
2469  first free object = NULL
2471  stat(s, Cpu slab acquired from page allocator )
2472  The slab from which we are allocating = page
2473  pc = c
2476  Return freelist
Caller
NameDescribe
___slab_allocSlow path. The lockless freelist is empty or we need to perform* debugging duties.* Processing is still very fast if new objects have been freed to the* regular freelist. In that case we simply take over the regular freelist