Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Any surplus references (object already gray) to 'ptr' are passed to* 'excess_ref'. This is used in the vmalloc() case where a pointer to* vm_struct may be used as an alternative reference to the vmalloc'ed object* (see free_thread_stack()).

Proto:static void object_set_excess_ref(unsigned long ptr, unsigned long excess_ref)

Type:void

Parameter:

TypeParameterName
unsigned longptr
unsigned longexcess_ref
838  object = Look up an object in the object search tree and increase its use_count.
839  If Not object Then
840  Print a warning and dump the stack trace.("Setting excess_ref on unknown object at 0x%08lx\n", ptr)
842  Return
845  spin_lock_irqsave( & lock, flags)
846  pass surplus references to this pointer = excess_ref
847  spin_unlock_irqrestore( & lock, flags)
848  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_vmallockmemleak_vmalloc - register a newly vmalloc'ed object*@area: pointer to vm_struct*@size: size of the object*@gfp: __vmalloc() flags used for kmemleak internal memory allocations* This function is called from the vmalloc() kernel allocator when a new