regs_within_kernel_stack(9)
okay bestie, welcome to the regs_within_kernel_stack(9) page from the Kernel API Manual β weβre doing a little vibe check on stack addresses today π
β¨
πΈ NAME πΈ
regs_within_kernel_stack β check the address in the stack π«Ά
β¨ SYNOPSIS β¨
int regs_within_kernel_stack (struct pt_regs *regs , unsigned long addr
);
π ARGUMENTS π
regsβ apt_regswhich contains kernel stack pointer. yes bestie, itβs holding the stack pointer for you πaddrβ address which is checked. thatβs the one weβre asking about π
π¦ DESCRIPTION π¦
so regs_within_kernel_stack checks addr is within the kernel stack page(s). if addr is within the kernel stack, it returns true. if not, returns false. thatβs it β simple little true/false moment, no cap π₯
π SEE ALSO π
Kernel file ./arch/x86/include/asm/ptrace.h says hi, and so do these function besties:
regs_get_register(9)regs_get_kernel_stack_nth_addr(9)regs_get_kernel_stack_nth(9)regs_get_kernel_argument(9)
mwah π this iconic little page comes from source/version ./arch/x86/include/asm and is dated October 2026 β go check that stack address, bestie, and stay glowing ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms