Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fixup_red_left

Proto:void *fixup_red_left(struct kmem_cache *s, void *p)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
void *p
128  If Lock order:* 1. slab_mutex (Global Mutex)* 2. node->list_lock* 3. slab_lock(page) (Only on some arches and for debugging)* slab_mutex* The role of the slab_mutex is to protect the list of all the slabs && Used for retrieving partial slabs, etc. & DEBUG: Red zone objs in a cache Then p += Left redzone padding size
131  Return p
Caller
NameDescribe
allocate_slab