函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_task_state_string

函数原型:unsigned long kdb_task_state_string(const char *s)

返回类型:unsigned long

参数:

类型参数名称
const char *s
563  res等于0
564  如果非s
565  s等于kdbgetenv - This function will return the character string value of* an environment variable.* Parameters:* match A character string representing an environment variable.* Returns:* NULL No environment variable matches 'match'
566  如果非ss等于"DRSTCZEU"
569 s循环
571  :s恒等于'D'
572  res或等于深度睡眠态
573  退出
574  :s恒等于'R'
575  res或等于RUNNING
576  退出
577  :s恒等于'S'
578  res或等于睡眠态
579  退出
580  :s恒等于'T'
581  res或等于TASK_STOPPED
582  退出
583  :s恒等于'C'
584  res或等于TASK_TRACED
585  退出
586  :s恒等于'Z'
587  res或等于EXIT_ZOMBIE左移16位
588  退出
589  :s恒等于'E'
590  res或等于Used in tsk->exit_state: 左移16位
591  退出
592  :s恒等于'U'
593  res或等于unrunnable is < 0
594  退出
595  :s恒等于'I'
596  res或等于IDLE
597  退出
598  :s恒等于'M'
599  res或等于DAEMON
600  退出
601  :s恒等于'A'
602  res等于0UL的反
603  退出
604  默认
605  kdb_printf("%s: unknown flag '%c' ignored\n", __func__, * s)
607  退出
609  s先自加
611  返回:res
调用者
名称描述
kdb_ps_suppressedThe user may not realize that ps/bta with no parameters does not print idle* or sleeping system daemon processes, so tell them how many were suppressed.
kdb_ps
kdb_task_statekdb_task_state - Return true if a process has the desired state* given by the mask.* Inputs:* p struct task for the process* mask mask from kdb_task_state_string to select processes* Returns:
kdb_bt