函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_cpu - This function implements the 'cpu' command.* cpu [<cpunum>]* Returns:* KDB_CMD_CPU for success, a kdb diagnostic if error

函数原型:static void kdb_cpu_status(void)

返回类型:void

参数:

2209  first_print等于1
2210  prev_state等于'?'
2212  kdb_printf("Currently on cpu %d\n", These macros fold the SMP functionality into a single CPU system())
2213  kdb_printf("Available cpus: ")
2214 i小于CPU数量循环
2215  如果非cpu_online(i)则
2216  state等于'F'
2217  否则如果非enter_kgdb
2218  state等于'D'
2219  否则
2220  state等于' '
2224  如果state不等于prev_state
2225  如果prev_state不等于'?'则
2226  如果非first_printkdb_printf(", ")
2228  first_print等于0
2229  kdb_printf("%d", start_cpu)
2230  如果start_cpu小于i减1则kdb_printf("-%d", i - 1)
2232  如果prev_state不等于' '则kdb_printf("(%c)", prev_state)
2235  prev_state等于state
2236  start_cpu等于i
2240  如果prev_state不等于'F'则
2241  如果非first_printkdb_printf(", ")
2243  kdb_printf("%d", start_cpu)
2244  如果start_cpu小于i减1则kdb_printf("-%d", i - 1)
2246  如果prev_state不等于' '则kdb_printf("(%c)", prev_state)
2249  kdb_printf("\n")
调用者
名称描述
kdb_cpu