Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Update an object's references. object->lock must be held by the caller.

Proto:static void update_refs(struct kmemleak_object *object)

Type:void

Parameter:

TypeParameterName
struct kmemleak_object *object
1183  If Not 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) Then
1185  Return
1194  he total number of pointers found pointing to this object ++
1195  If color_gray(object) Then
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  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
Caller
NameDescribe
scan_blockScan a memory block (exclusive range) for valid pointers and add those* found to the gray list.