函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kgdb_transition_check

函数原型:static int kgdb_transition_check(char *buffer)

返回类型:int

参数:

类型参数名称
char *buffer
37  如果buffer[0]不等于'+'且buffer[0]不等于'$'则
38  KDB_STATE_SET(KGDB_TRANS)
39  kdb_printf("%s", buffer)
40  否则
41  slen等于strlen - Find the length of a string*@s: The string to be sized
42  如果slen大于3且buffer[slen - 3]恒等于'#'则
44  strcpy(buffer, "kgdb")
46  返回:1
49  返回:0
调用者
名称描述
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