函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.h Create Date:2022-07-27 15:27:29
Last Modify:2022-05-23 16:25:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:slab_want_init_on_alloc

函数原型:static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c)

返回类型:bool

参数:

类型参数名称
gfp_tflags
struct kmem_cache *c
722  如果static_branch_unlikely( & init_on_alloc)则
723  如果ctor则返回:false
725  如果Used for retrieving partial slabs, etc. 按位与Defer freeing slabs to RCU 按位或DEBUG: Poison objects 的值则返回:flags按位与__GFP_ZERO
727  返回:true
729  返回:flags按位与__GFP_ZERO
调用者
名称描述
slab_alloc_node
slab_alloc
kmem_cache_alloc_bulk
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.
kmem_cache_alloc_bulkNote that interrupts must be enabled when calling this function.