Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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).

Proto:static void kmemleak_do_cleanup(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
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 Not If there are leaks that can be reported Then __kmemleak_do_cleanup()
1878  Else pr_info("Kmemleak disabled without freeing internal data. Reclaim the memory with \"echo clear > /sys/kernel/debug/kmemleak\".\n")