Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Memory scanning is a long process and it needs to be interruptable. This* function checks whether such interrupt condition occurred.

Proto:static int scan_should_stop(void)

Type:int

Parameter:Nothing

1208  If Not set if tracing memory operations is enabled Then Return 1
1215  If mm Then Return signal_pending(current process)
1217  Else Return kthread_should_stop - should this kthread return now?* When someone calls kthread_stop() on your kthread, it will be woken* and this will return true. You should then return, and your return* value will be passed through to kthread_stop().
1220  Return 0
Caller
NameDescribe
scan_blockScan a memory block (exclusive range) for valid pointers and add those* found to the gray list.
scan_gray_listScan the objects already referenced (gray objects). More objects will be* referenced and, if there are no memory leaks, all the objects are scanned.
kmemleak_scanScan data sections and all the referenced memory blocks allocated via the* kernel's standard allocators. This function must be called with the* scan_mutex held.