percpu_ref_resurrect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Hii bestie, this is the Kernel API Manual page for percpu_ref_resurrect(9), and it's literally about bringing a percpu refcount back from the dead: modify a percpu refcount from dead to live. It's giving resurrection arc, no cap ✨

✨ SYNOPSIS ✨

void percpu_ref_resurrect (struct percpu_ref *ref );

πŸŽ€ ARGUMENTS πŸŽ€

  • ref β€” the perpcu_ref to resurrect. Yes bestie, that spelling is in the original, we're keeping it exactly 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so what this does: modify ref so that it's in the same state as before percpu_ref_kill was called. Simple concept, iconic execution πŸ’…

But listen: ref must be dead but must not yet have exited. That's the vibe check, and it has to pass.

Bestie, real talk: if ref->release frees ref, then the caller is responsible for guaranteeing that ref->release does not get called while this function is in progress. Do not skip that part, fr fr 😭

Also, a little note that matters: percpu_ref_tryget[_live]() are safe to perform on ref while this function is in progress. So yes, those can happen during the resurrection era 🌈

🌸 SEE ALSO 🌸

The kernel file is ./lib/percpu-refcount.c, and the whole squad is:


mwah πŸ’‹ β€” source/version ./lib, dated October 2026, page filed under percpu_ref_resurrect(9). Catch u on the next manpage, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from