函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_getchar() - Read a single character from a kdb console (or consoles)

函数原型:char kdb_getchar(void)

返回类型:char

参数:

131  pbuf等于buf
132  escape_delay等于0
133  get_char_func * f, * f_prev = NULL
136  循环
137  如果( * f == NULL)则
140  f等于kdb_poll_funcs[0]
143  key等于f
144  如果key恒等于负1则
145  如果escape_delay
150  继续下一循环
158  如果f_prev不等于f
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  如果key小于0则返回:buf[pbuf - buf == 2 ? 1 : 0]
168  如果key大于0则返回: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.()
调用者
名称描述
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