Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:paint_ptr

Proto:static void paint_ptr(unsigned long ptr, int color)

Type:void

Parameter:

TypeParameterName
unsigned longptr
intcolor
751  object = Look up an object in the object search tree and increase its use_count.
752  If Not object Then
753  Print a warning and dump the stack trace.("Trying to color unknown object at 0x%08lx as %s\n", ptr, (color == KMEMLEAK_GREY) ? "Grey" : (color == KMEMLEAK_BLACK) ? "Black" : "Unknown")
757  Return
759  paint_it(object, color)
760  Decrement the object use_count. Once the count is 0, free the object using* an RCU callback. Since put_object() may be called via the kmemleak_free() ->* delete_object() path, the delayed RCU freeing ensures that there is no
Caller
NameDescribe
make_gray_objectMark an object permanently as gray-colored so that it can no longer be* reported as a leak. This is used in general to mark a false positive.
make_black_objectMark the object as black-colored so that it is ignored from scans and* reporting.