stack_depot_fetch(9)
π NAME π
okay so stack_depot_fetch is literally the function that fetches a stack trace from stack depot, and this whole page is from the Kernel API Manual. bestie, we are in kernel land now π
β¨
β¨ SYNOPSIS β¨
here's the exact signature, no edits, no cap:
unsigned int stack_depot_fetch (depot_stack_handle_t handle , unsigned
long **entries );
π ARGUMENTS π
handleβ the stack depot handle you got back fromstack_depot_save. it's your little ticket into the depot, iykyk ποΈentriesβ a pointer where the address of the stack trace gets stored. you hand over the spot, the address lands there π«Ά
π RETURN π
the number of frames for the fetched stack. that's the count, periodt π₯
π«Ά SEE ALSO π«Ά
kernel file ./include/linux/stackdepot.h β and the whole squad:
stack_depot_save_flags(9)stack_depot_save(9)__stack_depot_get_stack_record(9)stack_depot_print(9)stack_depot_snprint(9)stack_depot_put(9)stack_depot_set_extra_bits(9)stack_depot_get_extra_bits(9)
this cutie comes from ./include/linux, dated October 2026, and stack_depot_fetch(9) is signing off πβ¨
π¦ 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