Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kthread which checks for tasks stuck in D state

Proto:static int watchdog(void *dummy)

Type:int

Parameter:

TypeParameterName
void *dummy
273  hung_last_checked = jiffies
275  set_user_nice(current process, 0)
277  cycle
278  timeout = Zero means infinite timeout - no checking done:
279  interval = Zero (default value) means use sysctl_hung_task_timeout_secs:
282  If interval == 0 Then 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  If t <= 0 Then
291  Continue
293  We can use __set_current_state() here because schedule_timeout() calls* schedule() unconditionally.
296  Return 0