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:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdb_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:

Proto:unsigned long kdb_task_state(const struct task_struct *p, unsigned long mask)

Type:unsigned long

Parameter:

TypeParameterName
const struct task_struct *p
unsigned longmask
663  char state[] = {kdb_task_state_char - Return the character that represents the task state.* Inputs:* p struct task for the process* Returns:* One character to represent the task state., '\0'}
664  Return (mask & kdb_task_state_string(state)) != 0
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_bt1kdb_bt* This function implements the 'bt' command