netdev_lowe..._private_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… netdev_lowe..._private_rcu(9) πŸ’…

okay so bestie, we're deep in the Kernel API Manual today β€” yes, the Kernel API Manual, we're doing big-girl kernel things now πŸŽ€ and this one is a lil' RCU-flavoured neighbour-list iterator. it's giving "walk the lower neighbour list, but make it atomic-adjacent". stay with me, it's actually so good πŸ’–


✨ NAME ✨

netdev_lower_get_next_private_rcu β€” grab the next ->private off the lower neighbour list, but the RCU variant, so like, the chill lock-free one πŸ¦‹


🌸 SYNOPSIS 🌸

void * netdev_lower_get_next_private_rcu (struct net_device *dev ,
       struct list_head **iter );

🫢 ARGUMENTS 🫢

  • dev β€” the device. your main character. the netdev we're snooping around in πŸ‘‘
  • iter β€” a list_head **, i.e. a double pointer to wherever you're currently sitting in the list. it's literally your little bookmark πŸ”–

πŸ’œ DESCRIPTION πŸ’œ

So what it actually does: it gets you the next netdev_adjacent->private from dev's lower neighbour list, starting from the iter position you hand it. very "continue where u left off" energy ✨

⚠️ and this is the important bit, bestie β€” the caller must hold the RCU read lock. no cap. that's not a suggestion, that's the whole contract πŸ’€πŸ”’

πŸ”₯ SEE ALSO πŸ”₯

we are not linking you just one friend, we're linking you the whole group chat. Kernel file ./net/core/dev.c, plus this entire roster πŸŽ€:


and that's the whole page, bestie β€” go hold that RCU read lock and iterate responsibly πŸ’…βœ¨

this icon of a manpage lives in ./net/core, October 2026 edition, and honestly? it ate. periodt πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from