stack_depot_put(9)
πΈ NAME πΈ
okay so bestie, welcome to stack_depot_put β it's a page straight out of the Kernel API Manual π and it's literally the function that drops a reference to a stack trace from stack depot. that's the whole vibe. no cap. β¨
π¦ SYNOPSIS π¦
void stack_depot_put (depot_stack_handle_t handle );
that's it. that's the whole call. void return, one argument, zero drama π
π ARGUMENTS π
handleβ the stack depot handle that came back fromstack_depot_save. like, you got the receipt from the save, and now you're handing it back over π«Ά
π DESCRIPTION π
so here's the tea β β the stack trace doesn't get evicted from stack depot the moment you call this. it gets evicted only once all the references to it have been dropped, and the way that's measured is:
once the number of stack_depot_evict calls matches the number of stack_depot_save_flags calls that had STACK_DEPOT_FLAG_GET set for this stack trace π₯
so yeah β every save-with-GET needs its matching evict, and the trace stays chillin' in the depot until the count lines up. it's giving reference counting realness iykyk π€
π SEE ALSO π
- Kernel file
./include/linux/stackdepot.hβ go read it, bestie, it's iconic π stack_depot_save_flags(9)stack_depot_save(9)__stack_depot_get_stack_record(9)stack_depot_fetch(9)stack_depot_print(9)stack_depot_snprint(9)stack_depot_set_extra_bits(9)stack_depot_get_extra_bits(9)
like the whole stack depot friend group fr fr π
mwah π this one lives in ./include/linux, it's tagged October 2026, and the page itself is called stack_depot_put(9) β go drop those references responsibly, bestie, ily π§ββοΈ
π¦ 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