函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kmemleak_disable

函数原型:static void kmemleak_disable(void)

返回类型:void

参数:

1891  如果cmpxchg( & set if a fatal kmemleak error has occurred , 0, 1)则返回
1895  set if tracing memory operations is enabled 等于0
1898  如果set in the late_initcall if there were no errors schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
1900  否则same as above but only for the kmemleak_free() callback 等于0
1903  打印信息("Kernel memory leak detector disabled\n")
调用者
名称描述
create_objectCreate the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.
kmemleak_writeFile write operation to configure kmemleak at run-time
kmemleak_boot_configAllow boot-time kmemleak disabling (enabled by default).