percpu_ref_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is percpu_ref_put(9) from the Kernel API Manual β€” literally the page about decrementing a percpu refcount. πŸ’–

✨ SYNOPSIS ✨

void percpu_ref_put (struct percpu_ref *ref );

πŸŽ€ ARGUMENTS πŸŽ€

  • ref β€” the percpu_ref to put. That's the one you're handing over to this function. 🫢

πŸ’… DESCRIPTION πŸ’…

so what it does: it decrements the refcount, and if that count hits 0, it calls the release function β€” the one that was passed to percpu_ref_init. no cap, that's the whole vibe. ✨

⚠️ safety note, bestie: this function is safe to call as long as ref is between init and exit. outside that window? don't. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the Kernel file ./include/linux/percpu-refcount.h is right there for you, and these related pages are the whole friend group:


mwah πŸ’‹ sign-off: this page lives in ./include/linux, dated October 2026, and it's percpu_ref_put(9). periodt. πŸ‘‘

πŸ“¦ where this page comes from