函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Update an object's references. object->lock must be held by the caller.

函数原型:static void update_refs(struct kmemleak_object *object)

返回类型:void

参数:

类型参数名称
struct kmemleak_object *object
1183  如果非Object colors, encoded with count and min_count:* - white - orphan object, not enough references to it (count < min_count)* - gray - not orphan, not marked as false positive (min_count == 0) or* sufficient references to it (count >= min_count)
1185  返回
1194  he total number of pointers found pointing to this object 自加
1195  如果color_gray(object)则
1197  WARN_ON(!Increment the object use_count. Return 1 if successful or 0 otherwise. Note* that once an object's use_count reached 0, the RCU freeing was already* registered and the object should no longer be used. This function must be)
1198  添加链表项
调用者
名称描述
scan_blockScan a memory block (exclusive range) for valid pointers and add those* found to the gray list.