函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kthread which checks for tasks stuck in D state

函数原型:static int watchdog(void *dummy)

返回类型:int

参数:

类型参数名称
void *dummy
273  hung_last_checked等于jiffies
275  set_user_nice(当前进程, 0)
277  循环
278  timeout等于Zero means infinite timeout - no checking done:
279  interval等于Zero (default value) means use sysctl_hung_task_timeout_secs:
282  如果interval恒等于0则interval等于timeout
284  interval等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, interval, timeout)
285  t等于hung_timeout_jiffies(hung_last_checked, interval)
286  如果t小于等于0则
291  继续下一循环
293  We can use __set_current_state() here because schedule_timeout() calls* schedule() unconditionally.
296  返回:0