函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:color_gray

函数原型:static bool color_gray(const struct kmemleak_object *object)

返回类型:bool

参数:

类型参数名称
const struct kmemleak_object *object
314  返回:minimum number of a pointers found before it is considered leak 不等于KMEMLEAK_BLACKhe total number of pointers found pointing to this object 大于等于minimum number of a pointers found before it is considered leak
调用者
名称描述
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.