Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmemleak_alloc_percpu - register a newly allocated __percpu object*@ptr: __percpu pointer to beginning of the object*@size: size of the object*@gfp: flags used for kmemleak internal memory allocations* This function is called from the kernel percpu

Proto:void __ref kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
const void __percpu *ptr
size_tsize
gfp_tgfp
911  pr_debug("%s(0x%p, %zu)\n", __func__, ptr, size)
917  If set if tracing memory operations is enabled && ptr && Not IS_ERR(ptr) Then for_each_possible_cpu(cpu)
919  Create the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.