regs_get_kernel_stack_nth(9)
Ok so bestie, this is regs_get_kernel_stack_nth(9) from the Kernel API Manual, and it is lowkey here to hand you the Nth entry of the stack. Main character energy only. π
β¨
β¨ NAME β¨
regs_get_kernel_stack_nth β get Nth entry of the stack π«Ά
π¦ SYNOPSIS π¦
unsigned long regs_get_kernel_stack_nth (struct pt_regs *regs , unsigned int n );
π ARGUMENTS π
regsβ thept_regsthat contains the kernel stack pointer. That's the context bestie, no cap.nβ stack entry number. Literally which entry we're grabbing. π₯
πΈ DESCRIPTION πΈ
Okay so regs_get_kernel_stack_nth returns the nth entry of the kernel stack that is specified by regs. If the nth entry is NOT in the kernel stack, it returns 0. Periodt. π
π₯ SEE ALSO π₯
Kernel file ./arch/x86/include/asm/ptrace.h:
regs_get_register(9)regs_within_kernel_stack(9)regs_get_kernel_stack_nth_addr(9)regs_get_kernel_argument(9)
Byeee π cute little sign-off: source/version is ./arch/x86/include/asm, date is October 2026, and the page is regs_get_kernel_stack_nth(9). Slay. ππ
π¦ 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