Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kgdb.c Create Date:2022-07-28 08:40:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dbg_get_reg

Proto:char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)

Type:char

Parameter:

TypeParameterName
intregno
void *mem
struct pt_regs *regs
108  If regno == GDB_ORIG_AX Then
109  memcpy(mem, & orig_ax, size of orig_ax )
110  Return "orig_ax"
112  If regno >= DBG_MAX_REG_NUM || regno < 0 Then Return NULL
115  If offset != -1 Then memcpy(mem, (void * )regs + offset, size)
121  Case regno == GDB_GS
122  Case regno == GDB_FS
123  mem = 0xFFFF
124  Break
127  Return name