函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_cpu

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

返回类型:int

参数:

类型参数名称
intargc
const char **argv
2257  如果argc恒等于0则
2258  kdb_cpu - This function implements the 'cpu' command.* cpu []* Returns:* KDB_CMD_CPU for success, a kdb diagnostic if error
2259  返回:0
2262  如果argc不等于1则返回:KDB_ARGCOUNT
2265  diag等于kdbgetularg - This function will convert a numeric string into an* unsigned long value.* Parameters:* arg A character string representing a numeric value* Outputs:* *value the unsigned long represntation of arg.* Returns:
2266  如果diag则返回:diag
2272  如果cpunum大于等于FIXME: This should be fixed in the arch's Kconfig 或非enter_kgdb则返回:KDB_BADCPUNUM
2275  Next cpu to become the master debug core 等于cpunum
2280  返回:KDB_CMD_CPU