函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kmemleak_free_part - partially unregister a previously registered object*@ptr: pointer to the beginning or inside the object

函数原型:void __ref kmemleak_free_part(const void *ptr, size_t size)

返回类型:void

参数:

类型参数名称
const void *ptr
size_tsize
976  pr_debug("%s(0x%p)\n", __func__, ptr)
978  如果set if tracing memory operations is enabled ptr且非是错误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.
调用者
名称描述
kmemleak_free_part_physkmemleak_free_part_phys - similar to kmemleak_free_part but taking a* physical address argument*@phys: physical address if the beginning or inside an object. This* also represents the start of the range to be freed*@size: size to be unregistered