函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_ps

函数原型:static int kdb_ps(int argc, const char **argv)

返回类型:int

参数:

类型参数名称
intargc
const char **argv
2352  如果argc恒等于0则The 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.
2354  kdb_printf("%-*s Pid Parent [*] cpu State %-*s Command\n", (int)(2 * *的长度) + 2, "Task Addr", (int)(2 * *的长度) + 2, "Thread")
2357  mask等于kdb_task_state_string(argc ? argv[1] : NULL)
2359  遍历在线CPU(cpu)
2360  如果KDB_FLAG(CMD_INTERRUPT)则返回:0
2362  p等于kdb_curr_task(cpu)
2363  如果kdb_task_state(p, mask)则kdb_ps - This function implements the 'ps' command which shows a* list of the active processes.* ps [DRSTCZEUIMA] All processes, optionally filtered by state
2366  kdb_printf("\n")
2368  Simplify coexistence with NPTL (g, p)
2369  如果KDB_FLAG(CMD_INTERRUPT)则返回:0
2371  如果kdb_task_state(p, mask)则kdb_ps - This function implements the 'ps' command which shows a* list of the active processes.* ps [DRSTCZEUIMA] All processes, optionally filtered by state
2373  kdb_while_each_thread(g, p)
2375  返回:0