Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmemleak_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.).

Proto:void __ref kmemleak_free(const void *ptr)

Type:void

Parameter:

TypeParameterName
const void *ptr
958  pr_debug("%s(0x%p)\n", __func__, ptr)
960  If same as above but only for the kmemleak_free() callback && ptr && Not IS_ERR(ptr) Then Look up the metadata (struct kmemleak_object) corresponding to ptr and* delete it.
Caller
NameDescribe
genradix_free_node
vfree_atomicvfree_atomic - release memory allocated by vmalloc()*@addr: memory base address* This one is just like vfree() but can be called in any atomic context* except NMIs.
vfreevfree - release memory allocated by vmalloc()*@addr: memory base address* Free the virtually continuous memory area starting at @addr, as* obtained from vmalloc(), vmalloc_32() or __vmalloc()
kfree
kfree_hook
kmemleak_free_recursive
sg_kfree