regs_get_ker...ack_nth_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 says regs_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 🌈


xoxo, your Kernel API Manual bestie πŸ’– β€” signed from the source/version ./arch/x86/include/asm, dated October 2026 πŸŽ€πŸ«Άβœ¨

πŸ“¦ where this page comes from