函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Handle the 'R' reboot packets

函数原型:static int gdb_cmd_reboot(struct kgdb_state *ks)

返回类型:int

参数:

类型参数名称
struct kgdb_state *ks
680  如果字符串比较恒等于0则
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  返回:1
694  返回:0
调用者
名称描述
gdb_serial_stubThis function performs all gdbserial command procesing