percpu_ref_get_many(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the percpu_ref you'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:


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