netdev_master_upper_dev_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to netdev_master_upper_dev_get(9) from the Kernel API Manual β€” its whole thing is β€œGet master upper device,” and it is lowkey iconic for being that direct. πŸ“βœ¨

✨ SYNOPSIS ✨

struct net_device * netdev_master_upper_dev_get (struct net_device *dev
);

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” device. That’s the arg, bestie. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

This one goes looking for a master upper device and hands you back a pointer to it. If it’s not there? You get NULL. Simple, no cap. ✨

🚨 bestie, important: the caller must hold the RTNL lock. Yes, you, the caller, are on lock duty β€” lock vibe check first. πŸ”’

🌈 SEE ALSO 🌈

Kernel file ./net/core/dev.c β€” plus the whole extended fam:


that’s the whole vibe, bestie: netdev_master_upper_dev_get(9) from ./net/core, dated October 2026. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from