函数逻辑报告

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

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

返回类型:int

参数:

类型参数名称
struct pt_regs *regs
unsigned longaddr
244  返回:addr按位与THREAD_SIZE减1的差的反的值恒等于sp按位与THREAD_SIZE减1的差的反的值
调用者
名称描述
regs_get_kernel_stack_nth_addrgs_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