函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Late initialization function.

函数原型:static int __init kmemleak_late_init(void)

返回类型:int

参数:

1961  set in the late_initcall if there were no errors 等于1
1963  debugfs_create_file("kmemleak", 0644, NULL, NULL, & kmemleak_fops)
1965  如果set if a fatal kmemleak error has occurred
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  返回:负ENOMEM
1976  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN)则
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  打印信息("Kernel memory leak detector initialized (mem pool available: %d)\n", mem_pool_free_count)
1985  返回:0