函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-27 17:56:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:paint_ptr

函数原型:static void paint_ptr(unsigned long ptr, int color)

返回类型:void

参数:

类型参数名称
unsigned longptr
intcolor
751  object等于Look up an object in the object search tree and increase its use_count.
752  如果非object
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  返回
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
调用者
名称描述
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.