dev_nit_active_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dev_nit_active_rcu(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this is the page for dev_nit_active_rcu, and honestly it's a little icon that does exactly one thing and does it slayfully. let's get into it 🫢


✨ NAME ✨

dev_nit_active_rcu β€” return true if any network interface taps are in use

like, that's it. that's the whole job. it looks at a net device and tells you "yeah, somebody's got a tap on this" or "nope, we're clean." no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bool dev_nit_active_rcu (const struct net_device *dev );

(yes the space before that closing paren is really there, don't come for me, copy it exactly 😭)


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the network device you wanna check for the presence of taps 🌸

πŸ’€ DESCRIPTION πŸ’€

so the one thing you cannot skip here: the caller must hold the RCU lock. literally the whole vibe of this function is "i'm already inside RCU, trust me." if you're not holding the RCU lock, do not pass go, do not collect $200, go fix that first πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./net/core/dev.c and, like, the entire friend group β€” seriously, this list is a whole group chat:


reminder bestie: RCU lock held or don't call it. that's the whole footnote. that's the post. πŸ”’

mwah πŸ’‹ this page lives in ./net/core, it's from October 2026, and it's filed under dev_nit_active_rcu(9) β€” go hold that RCU lock and stay iconic, ily πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from