regs_get_ker...ack_nth_addr(9)
π regs_get_kernel_stack_nth_addr(9) π
okay so welcome to the Kernel API Manual, bestie π«Ά β this is the page for regs_get_kernel_stack_nth_addr(9). The header is out here truncating it as regs_get_ker...ack_nth_addr(9) (iconic ellipsis behavior), but the NAME section has the full name.
β¨ NAME β¨
regs_get_kernel_stack_nth_addr β get the address of the Nth entry on stack π
πΈ SYNOPSIS πΈ
unsigned long * regs_get_kernel_stack_nth_addr (struct pt_regs *regs ,
unsigned int n );
π ARGUMENTS π
regsβ pt_regs which contains kernel stack pointer. That's the little receipt that tells you where the kernel stack is at πnβ stack entry number. Which entry are we checking, bestie? π’
π¦ DESCRIPTION π¦
okay so regs_get_kernel_stack_nth returns the address of the n th entry of the kernel stack which is specified by regs. slay.
If the n th entry is NOT in the kernel stack, this returns NULL. no cap β that's the whole vibe check. β οΈ
tiny note, bestie: the description literally saysregs_get_kernel_stack_nth(without_addr). That's exactly what the page says, so I'm not editing it β I'm just reporting the lore π
π SEE ALSO π
- Kernel file
./arch/x86/include/asm/ptrace.h regs_get_register(9)regs_within_kernel_stack(9)regs_get_kernel_stack_nth(9)regs_get_kernel_argument(9)
xoxo, your Kernel API Manual bestie π β signed from the source/version ./arch/x86/include/asm, dated October 2026 ππ«Άβ¨
π¦ 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