Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmemleak_disable

Proto:static void kmemleak_disable(void)

Type:void

Parameter:Nothing

1891  If cmpxchg( & set if a fatal kmemleak error has occurred , 0, 1) Then Return
1895  set if tracing memory operations is enabled = 0
1898  If set in the late_initcall if there were no errors Then 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  Else same as above but only for the kmemleak_free() callback = 0
1903  pr_info("Kernel memory leak detector disabled\n")
Caller
NameDescribe
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).