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

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

Type:unsigned long

Parameter:

TypeParameterName
struct pt_regs *regs
unsigned intn
258  addr = sp
260  addr += n
261  If gs_within_kernel_stack() - check the address in the stack*@regs: pt_regs which contains kernel stack pointer.*@addr: address which is checked.* regs_within_kernel_stack() checks @addr is within the kernel stack page(s). Then Return addr
263  Else Return NULL
Caller
NameDescribe
regs_get_kernel_stack_nthgs_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