Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Look up the metadata (struct kmemleak_object) corresponding to ptr and* delete it.

Proto:static void delete_object_full(unsigned long ptr)

Type:void

Parameter:

TypeParameterName
unsigned longptr
684  object = Look up an object in the object search tree and remove it from both* object_tree_root and object_list. The returned object's use_count should be* at least 1, as initially set by create_object().
685  If Not object Then
687  Print a warning and dump the stack trace.("Freeing unknown object at 0x%08lx\n", ptr)
690  Return
692  Mark the object as not allocated and schedule RCU freeing via put_object().
Caller
NameDescribe
kmemleak_freekmemleak_free - unregister a previously registered object*@ptr: pointer to beginning of the object* This function is called from the kernel allocators when an object (memory* block) is freed (kmem_cache_free, kfree, vfree etc.).
kmemleak_free_percpukmemleak_free_percpu - unregister a previously registered __percpu object*@ptr: __percpu pointer to beginning of the object* This function is called from the kernel percpu allocator when an object* (memory block) is freed (free_percpu).