stack_depot_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 from stack_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 🌈

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