函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:If the object has been wiped upon free, make sure it's fully initialized by* zeroing out freelist pointer.

函数原型:static __always_inline void maybe_wipe_obj_freeptr(struct kmem_cache *s, void *obj)

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
void *obj
2661  如果此条件成立可能性小(为编译器优化)(slab_want_init_on_free(s))且objmemset((void * )((char * )obj + Free pointer offset ), 0, *的长度)
调用者
名称描述
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.