percpu_ref_get_many(9)
β¨ percpu_ref_get_many(9) β¨
hiii bestie π welcome to the Kernel API Manual page for percpu_ref_get_many(9) β we're doing refcounts today and honestly it's giving main-character energy π
πΈ NAME πΈ
percpu_ref_get_many β increment a percpu refcount, no cap π
π¦ SYNOPSIS π¦
void percpu_ref_get_many (struct percpu_ref *ref , unsigned long nr );
π ARGUMENTS π
refβ thepercpu_refyou're getting, bestie π«Άnrβ number of references to get β¨
π DESCRIPTION π
okay so this function is analogous to atomic_long_add β literally that vibe π₯
And here's the safety tea β: this function is safe to call as long as ref is between init and exit. That's the whole rule, periodt π
π SEE ALSO π
The kernel file ./include/linux/percpu-refcount.h is the home base π and the whole squad is:
percpu_ref_kill(9)percpu_ref_get(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)
mwah π this has been percpu_ref_get_many(9) signing off with source/version ./include/linux, dated October 2026 β slay and stay safe out there, bestie π§π
π¦ 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