Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void object_no_scan(unsigned long ptr)

Type:void

Parameter:

TypeParameterName
unsigned longptr
861  object = Look up an object in the object search tree and increase its use_count.
862  If Not object Then
863  Print a warning and dump the stack trace.("Not scanning unknown object at 0x%08lx\n", ptr)
864  Return
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
Caller
NameDescribe
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