函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int kdb_main_loop(kdb_reason_t reason, kdb_reason_t reason2, int error, kdb_dbtrap_t db_result, struct pt_regs *regs)

返回类型:int

参数:

类型参数名称
kdb_reason_treason
kdb_reason_treason2
interror
kdb_dbtrap_tdb_result
struct pt_regs *regs
1400  result等于1
1402  当1循环
1413  如果非KDB_STATE(KDB)则KDB_STATE_SET(KDB)
1417  KDB_STATE_CLEAR(SUPPRESS)
1419  如果KDB_STATE(LEAVING)则退出
1422  result等于kdb_local - The main code for kdb
1425  如果result恒等于KDB_CMD_CPU退出
1428  如果result恒等于KDB_CMD_SS
1430  退出
1433  如果result恒等于KDB_CMD_KGDB
1434  如果非KDB_STATE(DOING_KGDB)则kdb_printf("Entering please attach debugger or use $D#44+ or $3#33\n")
1437  退出
1439  如果resultresult不等于1且result不等于Kernel Debugger Command codes. Must not overlap with error codes. kdb_printf("\nUnexpected kdb_local return code %d\n", result)
1443  退出
1445  如果KDB_STATE(DOING_SS)则KDB_STATE_CLEAR(SSBPT)
1451  返回:result
调用者
名称描述
kdb_stub