stack_trace_save(9)
πΎ stack_trace_save(9) β Kernel API Manual β¨
okay so bestie, this is stack_trace_save(9) from the Kernel API Manual, and it is literally here to save a stack trace into a storage array. Thatβs the whole vibe. π
πΈ NAME πΈ
stack_trace_save β save a stack trace into a storage array. no cap, thatβs the job. π«Ά
β¨ SYNOPSIS β¨
unsigned int stack_trace_save (unsigned long *store , unsigned int size
, unsigned int skipnr );
π ARGUMENTS π
storeβ pointer to the storage array. this is where the trace goes, bestie πsizeβ size of the storage array. itβs giving βhow much room do we haveβ energy.skipnrβ number of entries to skip at the start of the stack trace. yes, literally skip that many from the beginning. periodt. β¨
π₯ RETURN π₯
it returns the number of trace entries stored. thatβs the count, and itβs iconic. π
π¦ SEE ALSO π¦
kernel file ./kernel/stacktrace.c β and the whole friend group:
stack_trace_print(9)stack_trace_snprint(9)stack_trace_save_tsk(9)stack_trace_save_regs(9)stack_trace_save_tsk_reliable(9)stack_trace_save_user(9)stack_trace_save_tsk(9)stack_trace_save_regs(9)stack_trace_save_tsk_reliable(9)stack_trace_save_user(9)filter_irq_stacks(9)
xoxo, bestie β source/version ./kernel, dated October 2026, signing off as stack_trace_save(9) π
β¨
π¦ 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