函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\ptrace.h Create Date:2022-07-27 06:38:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:gs_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

函数原型:static inline unsigned long regs_get_kernel_argument(struct pt_regs *regs, unsigned int n)

返回类型:unsigned long

参数:

类型参数名称
struct pt_regs *regs
unsigned intn
309  static const unsigned int argument_offs[] = {offsetof(structpt_regs, di), offsetof(structpt_regs, si), offsetof(structpt_regs, dx), offsetof(structpt_regs, cx), offsetof(structpt_regs, r8), offsetof(structpt_regs, r9), }
326  如果n大于等于NR_REG_ARGUMENTS
327  n减等于NR_REG_ARGUMENTS减1
328  返回:gs_get_kernel_stack_nth() - get Nth entry of the stack*@regs: pt_regs which contains kernel stack pointer.*@n: stack entry number.* regs_get_kernel_stack_nth() returns @n th entry of the kernel stack which* is specified by @regs
329  否则返回: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