Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_kmem_cache_cpus

Proto:static inline int alloc_kmem_cache_cpus(struct kmem_cache *s)

Type:int

Parameter:

TypeParameterName
struct kmem_cache *s
3338  BUILD_BUG_ON - break compile if a condition is true(PERCPU_DYNAMIC_EARLY_SIZE < The largest kmalloc size supported by the SLAB allocators is* 32 megabyte (2^25) or the maximum allocatable page order if that is* less than 32 MB * sizeof(structkmem_cache_cpu))
3345  cpu_slab = allocate one copy of the object for every present
3348  If Not cpu_slab Then Return 0
3351  init_kmem_cache_cpus(s)
3353  Return 1
Caller
NameDescribe
kmem_cache_open
setup_cpu_cache
__do_tune_cpucacheAlways called with the slab_mutex held