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

Name:kgdb_transition_check

Proto:static int kgdb_transition_check(char *buffer)

Type:int

Parameter:

TypeParameterName
char *buffer
37  If buffer[0] != '+' && buffer[0] != '$' Then
38  KDB_STATE_SET(KGDB_TRANS)
39  kdb_printf("%s", buffer)
40  Else
41  slen = strlen - Find the length of a string*@s: The string to be sized
42  If slen > 3 && buffer[slen - 3] == '#' Then
44  strcpy(buffer, "kgdb")
46  Return 1
49  Return 0
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