Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmemleak_free_part - partially unregister a previously registered object*@ptr: pointer to the beginning or inside the object

Proto:void __ref kmemleak_free_part(const void *ptr, size_t size)

Type:void

Parameter:

TypeParameterName
const void *ptr
size_tsize
976  pr_debug("%s(0x%p)\n", __func__, ptr)
978  If set if tracing memory operations is enabled && ptr && Not IS_ERR(ptr) Then 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.
Caller
NameDescribe
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