percpu_ref_tryget_live_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– percpu_ref_tryget_live_rcu(9) β€” Kernel API Manual πŸ’–

🌸 NAME 🌸

percpu_ref_tryget_live_rcu β€” okay so bestie, this is literally the same as percpu_ref_tryget_live() but the caller is responsible for taking RCU. Yes, that means you. πŸ’…

✨ SYNOPSIS ✨

bool percpu_ref_tryget_live_rcu (struct percpu_ref *ref );

πŸŽ€ ARGUMENTS πŸŽ€

  • ref β€” the percpu_ref to try-get. That’s the whole assignment, no cap. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This function is safe to call as long as ref is between init and exit. That’s the vibe check, bestie β€” stay inside that window and you’re good. ✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/percpu-refcount.h β€” go read it, iykyk πŸ‘‘


xoxo, signing off from ./include/linux with the October 2026 edition of percpu_ref_tryget_live_rcu(9). πŸ’–πŸŒΏ

πŸ“¦ where this page comes from