函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_kmem_cache_cpus

函数原型:static inline int alloc_kmem_cache_cpus(struct kmem_cache *s)

返回类型:int

参数:

类型参数名称
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等于__alloc_percpu - allocate dynamic percpu area*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)* Equivalent to __alloc_percpu_gfp(size, align, %GFP_KERNEL).
3348  如果非cpu_slab则返回:0
3351  init_kmem_cache_cpus(s)
3353  返回:1
调用者
名称描述
kmem_cache_open
setup_cpu_cache
__do_tune_cpucacheAlways called with the slab_mutex held