stack_trace_save_tsk(9)
π stack_trace_save_tsk β Kernel API Manual β¨
okay bestie, welcome to the manual page for stack_trace_save_tsk(9), straight out of the Kernel API Manual. it's a little function, it does one thing, and it does it iconically. let's get into it π«Ά
πΈ NAME πΈ
stack_trace_save_tsk β save a task stack trace into a storage array πΎβ¨
like, it grabs the trace and tucks it into your array. that's the whole vibe.
π¦ SYNOPSIS π¦
unsigned int stack_trace_save_tsk (struct task_struct *task , unsigned
long *store , unsigned int size , unsigned int skipnr );
no cap, that's the exact signature. copy it character for character or the compiler WILL come for you π
π ARGUMENTS π
taskβ the task you wanna examine π like, the one whose stack trace you're snooping on (affectionately).storeβ pointer to the storage array π¦ this is where the goods go.sizeβ size of the storage array π how much room you've got to work with.skipnrβ number of entries to skip at the start of the stack trace π because sometimes the top of the trace is just noise and you're like "not me, not this one."
β RETURN β
returns the number of trace entries stored π₯ that's it. that's the number. slay.
π§ SEE ALSO π§
the friend group π all of these live in the kernel file ./kernel/stacktrace.c:
stack_trace_print(9)stack_trace_snprint(9)stack_trace_save(9)stack_trace_save_regs(9)stack_trace_save_tsk_reliable(9)stack_trace_save_user(9)stack_trace_save(9)stack_trace_save_regs(9)stack_trace_save_tsk_reliable(9)stack_trace_save_user(9)filter_irq_stacks(9)
and yes, some of them are listed twice β the source page said it twice so we're saying it twice. consistency is a lifestyle π β¨
go read the source at ./kernel/stacktrace.c if you want the full lore. iykyk π¦
okay that's the whole page, mwah π this one's from the ./kernel corner of the world, October 2026, filed under stack_trace_save_tsk(9) β periodt. ππ
π¦ 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