函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Start the automatic memory scanning thread. This function must be called* with the scan_mutex held.

函数原型:static void start_scan_thread(void)

返回类型:void

参数:

1589  如果scan_thread则返回
1591  scan_thread等于kthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(Thread function performing automatic memory scanning. Unreferenced objects* at the end of a memory scan are reported but only the first time., NULL, "kmemleak")
1592  如果是错误
1593  打印警告信息("Failed to create the scan thread\n")
1594  scan_thread = NULL
调用者
名称描述
kmemleak_writeFile write operation to configure kmemleak at run-time
kmemleak_late_initLate initialization function.