函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_ps - This function implements the 'ps' command which shows a* list of the active processes.* ps [DRSTCZEUIMA] All processes, optionally filtered by state

函数原型:void kdb_ps1(const struct task_struct *p)

返回类型:void

参数:

类型参数名称
const struct task_struct *p
2325  如果非pprobe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault则返回
2328  cpu等于kdb_process_cpu(p)
2329  kdb_printf("0x%px %8d %8d %d %4d %c 0x%px %c%s\n", (void * )p, 进程ID, 进程ID, kdb_task_has_cpu(p), kdb_process_cpu(p), 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., (void * )( & * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct.), p == kdb_curr_task(These macros fold the SMP functionality into a single CPU system()) ? '*' : ' ', 是否使用FPU)
2336  如果kdb_task_has_cpu(p)则
2337  如果非KDB_TSK(cpu)则
2338  kdb_printf(" Error: no saved data for this cpu\n")
2339  否则
2340  如果KDB_TSK(cpu)不等于pkdb_printf(" Error: does not match running process table (0x%px)\n", KDB_TSK(cpu))
调用者
名称描述
kdb_ps
kdb_bt1kdb_bt* This function implements the 'bt' command