函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:unsigned long

参数:

类型参数名称
struct pt_regs *regs
unsigned intn
258  addr等于sp
260  addr加等于n
261  如果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).则返回:addr
263  否则返回:NULL
调用者
名称描述
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