函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Look up the metadata (struct kmemleak_object) corresponding to ptr and* delete it.

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

返回类型:void

参数:

类型参数名称
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  如果非object
687  Print a warning and dump the stack trace.("Freeing unknown object at 0x%08lx\n", ptr)
690  返回
692  Mark the object as not allocated and schedule RCU freeing via put_object().
调用者
名称描述
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).