函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kmemleak_scan_area - limit the range to be scanned in an allocated object*@ptr: pointer to beginning or inside the object

函数原型:void __ref kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp)

返回类型:void

参数:

类型参数名称
const void *ptr
size_tsize
gfp_tgfp
1084  pr_debug("%s(0x%p)\n", __func__, ptr)
1086  如果set if tracing memory operations is enabled ptrsize且非是错误Add a scanning area to the object. If at least one such area is added,* kmemleak will only scan these ranges rather than the whole memory block.
调用者
名称描述
kmemleak_load_module
alloc_vmap_areaAllocate a region of KVA of the specified size and alignment, within the* vstart and vend.