函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set the OBJECT_NO_SCAN flag for the object corresponding to the give* pointer. Such object will not be scanned by kmemleak but references to it* are searched.

函数原型:static void object_no_scan(unsigned long ptr)

返回类型:void

参数:

类型参数名称
unsigned longptr
861  object等于Look up an object in the object search tree and increase its use_count.
862  如果非object
863  Print a warning and dump the stack trace.("Not scanning unknown object at 0x%08lx\n", ptr)
864  返回
867  spin_lock_irqsave( & lock, flags)
868  bject status flags 或等于lag set to not scan the object
869  spin_unlock_irqrestore( & lock, flags)
870  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
调用者
名称描述
kmemleak_no_scankmemleak_no_scan - do not scan an allocated object*@ptr: pointer to beginning of the object* This function notifies kmemleak not to scan the given memory block. Useful* in situations where it is known that the given object does not contain any