arc_unwind_core(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this page is arc_unwind_core(9) from the Kernel API Manual, and it's literally about arc_unwind_core β€” the function that unwinds the kernel mode stack for an execution context. main character energy fr fr. πŸ’–

✨ SYNOPSIS ✨

notrace unsigned int arc_unwind_core (struct task_struct *tsk , struct
pt_regs *regs , int (*consumer_fn) (unsigned int, void *) , void *arg );

πŸŽ€ ARGUMENTS πŸŽ€

  • tsk β€” NULL for current task, specific task otherwise.
  • regs β€” pt_regs used to seed the unwinder {SP, FP, BLINK, PC}. If NULL, use pt_regs of tsk (if !NULL) otherwise use the current values of {SP, FP, BLINK, PC}.
  • consumer_fn β€” callback invoked for each frame unwound. Returns 0 to continue unwinding, -1 to stop.
  • arg β€” arg to callback.

πŸ’– DESCRIPTION πŸ’–

Returns the address of first function in stack. no cap, that's the whole return vibe.

Semantics:

  • synchronous unwinding (e.g. dump_stack): tsk NULL, regs NULL
  • Asynchronous unwinding of sleeping task: tsk !NULL, regs NULL
  • Asynchronous unwinding of intr/excp etc: tsk !NULL, regs !NULL

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./arch/arc/include/asm/stacktrace.h β€” go peek, bestie πŸ‘€

and the footer tea is source/version ./arch/arc/include/asm, dated October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from