Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Late initialization function.

Proto:static int __init kmemleak_late_init(void)

Type:int

Parameter:Nothing

1961  set in the late_initcall if there were no errors = 1
1963  debugfs_create_file("kmemleak", 0644, NULL, NULL, & kmemleak_fops)
1965  If set if a fatal kmemleak error has occurred Then
1972  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
1973  Return -ENOMEM
1976  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN) Then
1977  mutex_lock( & protects the memory scanning, parameters and debug/kmemleak file access )
1978  Start the automatic memory scanning thread. This function must be called* with the scan_mutex held.
1979  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1982  pr_info("Kernel memory leak detector initialized (mem pool available: %d)\n", mem_pool_free_count)
1985  Return 0