函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int scan_should_stop(void)

返回类型:int

参数:

1208  如果非set if tracing memory operations is enabled 则返回:1
1215  如果mm则返回:signal_pending(当前进程)
1217  否则返回: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  返回:0
调用者
名称描述
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.