percpu_ref_get(9)
π percpu_ref_get
okay so bestie, welcome to the Kernel API Manual β we're talking about percpu_ref_get, and she's iconic for exactly one job: bumping a percpu refcount. no cap. π«Ά
β¨ NAME β¨
percpu_ref_get β increment a percpu refcount π
πΈ SYNOPSIS πΈ
void percpu_ref_get (struct percpu_ref *ref );
π ARGUMENTS π
refβ thepercpu_refto get, aka the cutie you're handing to this function. π
π¦ DESCRIPTION π¦
So basically this is analogous to atomic_long_inc β same energy, different refcount situation. β¨
Safety vibe check: it's safe to call this function as long asrefis betweeninitandexit. That's the whole rule, bestie. Don't come for me if it's outside that window. π
π₯ SEE ALSO π₯
Kernel file ./include/linux/percpu-refcount.h, plus these other icons:
percpu_ref_kill(9)percpu_ref_get_many(9)percpu_ref_tryget_many(9)percpu_ref_tryget(9)percpu_ref_tryget_live_rcu(9)percpu_ref_tryget_live(9)percpu_ref_put_many(9)percpu_ref_put(9)percpu_ref_is_dying(9)
that's the whole page, periodt. this one lives in ./include/linux and is dated October 2026 β mwah π
π¦ 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