Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Another one that disabled interrupt and compensates for possible* cpu changes by refetching the per cpu area pointer.

Proto:static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node, unsigned long addr, struct kmem_cache_cpu *c)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
gfp_tgfpflags
intnode
unsigned longaddr
struct kmem_cache_cpu *c
2639  local_irq_save(flags)
2649  p = Slow 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
2650  local_irq_restore(flags)
2651  Return p
Caller
NameDescribe
slab_alloc_nodeInlined fastpath so that allocation functions (kmalloc, kmem_cache_alloc)* have the fastpath folded into their functions. So no function call* overhead for requests that can be satisfied on the fastpath.