Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__paint_it

Proto:static void __paint_it(struct kmemleak_object *object, int color)

Type:void

Parameter:

TypeParameterName
struct kmemleak_object *object
intcolor
733  minimum number of a pointers found before it is considered leak = color
734  If color == KMEMLEAK_BLACK Then bject status flags |= lag set to not scan the object
Caller
NameDescribe
paint_it
kmemleak_clearWe use grey instead of black to ensure we can do future scans on the same* objects. If we did not do future scans these black objects could* potentially contain references to newly allocated objects in the future and* we'd end up with false positives.