函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-27 17:22:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Flush cpu slab.* Called from IPI handler with interrupts disabled.

函数原型:static inline void __flush_cpu_slab(struct kmem_cache *s, int cpu)

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
intcpu
2319  c等于per_cpu_ptr(cpu_slab, cpu)
2321  如果 The slab from which we are allocating 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).
调用者
名称描述
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.