Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kdb_task_state_string

Proto:unsigned long kdb_task_state_string(const char *s)

Type:unsigned long

Parameter:

TypeParameterName
const char *s
563  res = 0
564  If Not s Then
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  If Not s Then s = "DRSTCZEU"
569  When s cycle
571  Case s == 'D'
573  Break
574  Case s == 'R'
575  res |= RUNNING
576  Break
577  Case s == 'S'
579  Break
580  Case s == 'T'
581  res |= TASK_STOPPED
582  Break
583  Case s == 'C'
584  res |= TASK_TRACED
585  Break
586  Case s == 'Z'
587  res |= EXIT_ZOMBIE << 16
588  Break
589  Case s == 'E'
591  Break
592  Case s == 'U'
594  Break
595  Case s == 'I'
596  res |= IDLE
597  Break
598  Case s == 'M'
599  res |= DAEMON
600  Break
601  Case s == 'A'
602  res = ~0UL
603  Break
604  Default
605  kdb_printf("%s: unknown flag '%c' ignored\n", __func__, * s)
607  Break
609  ++s
611  Return res
Caller
NameDescribe
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