Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:color_gray

Proto:static bool color_gray(const struct kmemleak_object *object)

Type:bool

Parameter:

TypeParameterName
const struct kmemleak_object *object
314  Return minimum number of a pointers found before it is considered leak != KMEMLEAK_BLACK && he total number of pointers found pointing to this object >= minimum number of a pointers found before it is considered leak
Caller
NameDescribe
update_refsUpdate an object's references. object->lock must be held by the caller.
scan_blockScan a memory block (exclusive range) for valid pointers and add those* found to the gray list.
kmemleak_scanScan data sections and all the referenced memory blocks allocated via the* kernel's standard allocators. This function must be called with the* scan_mutex held.