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_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

Proto:static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n)

Type:unsigned long

Parameter:

TypeParameterName
struct pt_regs *regs
unsigned intn
286  addr = gs_get_kernel_stack_nth_addr() - get the address of the Nth entry on stack*@regs: pt_regs which contains kernel stack pointer.*@n: stack entry number.* regs_get_kernel_stack_nth() returns the address of the @n th entry of the
287  If addr Then
288  ret = To avoid include hell, we can't include uaccess.h
289  If Not ret Then Return val
292  Return 0
Caller
NameDescribe
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