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

Name:handle_ctrl_cmd

Proto:static int handle_ctrl_cmd(char *cmd)

Type:int

Parameter:

TypeParameterName
char *cmd
1100  If cmd_head == cmd_tail Then Return 0
1103  Case cmd == CTRL_P
1104  If cmdptr != cmd_tail Then cmdptr = (cmdptr - 1) % Command history
1106  strncpy(cmd_cur, cmd_hist[cmdptr], kdb_printf: max printline* size == 256 )
1107  Return 1
1108  Case cmd == CTRL_N
1109  If cmdptr != cmd_head Then cmdptr = (cmdptr + 1) % Command history
1111  strncpy(cmd_cur, cmd_hist[cmdptr], kdb_printf: max printline* size == 256 )
1112  Return 1
1114  Return 0
Caller
NameDescribe
kdb_localkdb_local - The main code for kdb