函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-27 17:56:18
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. If the memory block is partially freed, the function may create* additional metadata for the remaining parts of the block.

函数原型:static void delete_object_part(unsigned long ptr, size_t size)

返回类型:void

参数:

类型参数名称
unsigned longptr
size_tsize
705  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().
706  如果非object
708  Print a warning and dump the stack trace.("Partially freeing unknown object at 0x%08lx (size %zu)\n", ptr, size)
711  返回
719  start等于pointer
720  end等于pointersize
721  如果ptr大于startCreate the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.
724  如果ptrsize小于endCreate the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.
728  Mark the object as not allocated and schedule RCU freeing via put_object().
调用者
名称描述
kmemleak_free_partkmemleak_free_part - partially unregister a previously registered object*@ptr: pointer to the beginning or inside the object