Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Flush cpu slab.* Called from IPI handler with interrupts disabled.

Proto:static inline void __flush_cpu_slab(struct kmem_cache *s, int cpu)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
intcpu
2319  c = per_cpu_ptr(cpu_slab, cpu)
2321  If The slab from which we are allocating Then flush_slab(s, c)
2324  Unfreeze all the cpu partial slabs.* This function must be called with interrupts disabled* for the cpu using c (or some other guarantee must be there* to guarantee no concurrent accesses).
Caller
NameDescribe
flush_cpu_slab
slub_cpu_deadUse the cpu notifier to insure that the cpu slabs are flushed when* necessary.
bootstrapUsed for early kmem_cache structures that were allocated using* the page allocator. Allocate them properly then fix up the pointers* that may be pointing to the wrong kmem_cache structure.