regs_within_kernel_stack(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” a pt_regs which 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:


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