Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_main.c Create Date:2022-07-28 11:42:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdb_cpu

Proto:static int kdb_cpu(int argc, const char **argv)

Type:int

Parameter:

TypeParameterName
intargc
const char **argv
2257  If argc == 0 Then
2258  kdb_cpu - This function implements the 'cpu' command.* cpu []* Returns:* KDB_CMD_CPU for success, a kdb diagnostic if error
2259  Return 0
2262  If argc != 1 Then Return 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  If diag Then Return diag
2272  If cpunum >= FIXME: This should be fixed in the arch's Kconfig || Not enter_kgdb Then Return KDB_BADCPUNUM
2275  Next cpu to become the master debug core = cpunum
2280  Return KDB_CMD_CPU