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:41:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdb_main_loop - After initial setup and assignment of the* controlling cpu, all cpus are in this loop

Proto:int kdb_main_loop(kdb_reason_t reason, kdb_reason_t reason2, int error, kdb_dbtrap_t db_result, struct pt_regs *regs)

Type:int

Parameter:

TypeParameterName
kdb_reason_treason
kdb_reason_treason2
interror
kdb_dbtrap_tdb_result
struct pt_regs *regs
1400  result = 1
1402  When 1 cycle
1408  When KDB_STATE(HOLD_CPU) cycle
1413  If Not KDB_STATE(KDB) Then KDB_STATE_SET(KDB)
1417  KDB_STATE_CLEAR(SUPPRESS)
1419  If KDB_STATE(LEAVING) Then Break
1422  result = kdb_local - The main code for kdb
1425  If result == KDB_CMD_CPU Then Break
1428  If result == KDB_CMD_SS Then
1430  Break
1433  If result == KDB_CMD_KGDB Then
1434  If Not KDB_STATE(DOING_KGDB) Then kdb_printf("Entering please attach debugger or use $D#44+ or $3#33\n")
1437  Break
1439  If result && result != 1 && result != Kernel Debugger Command codes. Must not overlap with error codes. Then kdb_printf("\nUnexpected kdb_local return code %d\n", result)
1443  Break
1445  If KDB_STATE(DOING_SS) Then KDB_STATE_CLEAR(SSBPT)
1451  Return result
Caller
NameDescribe
kdb_stub