Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Handle the 'R' reboot packets

Proto:static int gdb_cmd_reboot(struct kgdb_state *ks)

Type:int

Parameter:

TypeParameterName
struct kgdb_state *ks
680  If strcmp(Our I/O buffers. , "R0") == 0 Then
681  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
682  strcpy(remcom_out_buffer, "OK")
683  Send the packet in buffer.* Check for gdb connection if asked for.
689  machine_emergency_restart()
690  kgdb_connected - Is a host GDB connected to us? = 0
692  Return 1
694  Return 0
Caller
NameDescribe
gdb_serial_stubThis function performs all gdbserial command procesing