Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static __always_inline void maybe_wipe_obj_freeptr(struct kmem_cache *s, void *obj)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
void *obj
2661  If Value for the false possibility is greater at compile time(slab_want_init_on_free(s)) && obj Then memset((void * )((char * )obj + Free pointer offset ), 0, size of * )
Caller
NameDescribe
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.