Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kdb_getchar() - Read a single character from a kdb console (or consoles)

Proto:char kdb_getchar(void)

Type:char

Parameter:Nothing

131  pbuf = buf
132  escape_delay = 0
133  get_char_func * f, * f_prev = NULL
136  cycle
137  If ( * f == NULL) Then
140  f = kdb_poll_funcs[0]
143  key = f
144  If key == -1 Then
145  If escape_delay Then
150  Continue
158  If f_prev != f Then
159  f_prev = f
160  pbuf = buf
164  pbuf++ = key
165  key = kdb_handle_escape() - validity check on an accumulated escape sequence.*@buf: Accumulated escape characters to be examined. Note that buf* is not a string, it is an array of characters and need not be* nil terminated.
166  If key < 0 Then Return buf[pbuf - buf == 2 ? 1 : 0]
168  If key > 0 Then Return key
172  Mark a position in code as unreachable. This can be used to* suppress control flow warnings after asm blocks that transfer* control elsewhere.()
Caller
NameDescribe
kdb_readkdb_read* This function reads a string of characters, terminated by* a newline, or by reaching the end of the supplied buffer,* from the current kernel debugger console device.* Parameters:* Returns:* Returns a pointer to the buffer containing the received
vkdb_printf
kdb_bt1kdb_bt* This function implements the 'bt' command