Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void __ref kmemleak_free_percpu(const void __percpu *ptr)

Type:void

Parameter:

TypeParameterName
const void __percpu *ptr
994  pr_debug("%s(0x%p)\n", __func__, ptr)
996  If same as above but only for the kmemleak_free() callback && ptr && Not IS_ERR(ptr) Then for_each_possible_cpu(cpu)
998  Look up the metadata (struct kmemleak_object) corresponding to ptr and* delete it.