Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\ptrace.h Create Date:2022-07-28 05:34:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gs_get_register() - get register value from its offset*@regs: pt_regs from which register value is gotten.*@offset: offset number of the register.* regs_get_register returns the value of a register. The @offset is the

Proto:static inline unsigned long regs_get_register(struct pt_regs *regs, unsigned int offset)

Type:unsigned long

Parameter:

TypeParameterName
struct pt_regs *regs
unsigned intoffset
216  If Value for the false possibility is greater at compile time(offset > MAX_REG_OFFSET) Then Return 0
220  If offset == offsetof(structpt_regs, cs) || offset == offsetof(structpt_regs, ss) || offset == offsetof(structpt_regs, ds) || offset == offsetof(structpt_regs, es) || offset == offsetof(structpt_regs, fs) || offset == offsetof(structpt_regs, gs) Then
226  Return *(regs + offset)
230  Return *(regs + offset)
Caller
NameDescribe
get_eff_addr_regget_eff_addr_reg() - Obtain effective address from register operand*@insn: Instruction
get_eff_addr_modrmget_eff_addr_modrm() - Obtain referenced effective address via ModRM*@insn: Instruction
get_eff_addr_modrm_16get_eff_addr_modrm_16() - Obtain referenced effective address via ModRM*@insn: Instruction
get_eff_addr_sibget_eff_addr_sib() - Obtain referenced effective address via SIB*@insn: Instruction
perf_reg_value
process_fetch_insnNote that we don't verify it, since the code does not come from user space
process_fetch_insnNote that we don't verify it, since the code does not come from user space
regs_get_kernel_argumentgs_get_kernel_argument() - get Nth function argument in kernel*@regs: pt_regs of that context*@n: function argument number (start from 0)* regs_get_argument() returns @n th argument of the function call