函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Stop the memory scanning thread and free the kmemleak internal objects if* no previous scan thread (otherwise, kmemleak may still have some useful* information on memory leaks).

函数原型:static void kmemleak_do_cleanup(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
1864  Stop the automatic memory scanning thread.
1866  mutex_lock( & protects the memory scanning, parameters and debug/kmemleak file access )
1873  same as above but only for the kmemleak_free() callback 等于0
1874  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.
1876  如果非If there are leaks that can be reported __kmemleak_do_cleanup()
1878  否则打印信息("Kmemleak disabled without freeing internal data. Reclaim the memory with \"echo clear > /sys/kernel/debug/kmemleak\".\n")