函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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()).

函数原型:static void object_set_excess_ref(unsigned long ptr, unsigned long excess_ref)

返回类型:void

参数:

类型参数名称
unsigned longptr
unsigned longexcess_ref
838  object等于Look up an object in the object search tree and increase its use_count.
839  如果非object
840  Print a warning and dump the stack trace.("Setting excess_ref on unknown object at 0x%08lx\n", ptr)
842  返回
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
调用者
名称描述
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