netdev_has_any_upper_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– netdev_has_any_upper_dev(9) πŸ’–

Okay so welcome to the Kernel API Manual, bestie β€” today’s main character is netdev_has_any_upper_dev(9), and we are checking upper-device linkage like it’s a group-chat read receipt. 🫢✨

🌸 NAME 🌸

netdev_has_any_upper_dev β€” check if a device is linked to some device. That’s the whole name, and honestly? Iconic. πŸ’…

✨ SYNOPSIS ✨

Here’s the signature, exactly as it appears, no edits bestie:

bool netdev_has_any_upper_dev (struct net_device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” device. The device you’re asking about, periodt. πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

Find out if a device is linked to an upper device, and return true in case it is. 🫢

The caller must hold the RTNL lock β€” like, this is not a vibe-check-optional situation, bestie. πŸ”’πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./net/core/dev.c β€” that’s where this lives, iykyk. πŸ‘‘

Then the full reference squad, all of them, no crumbs left behind:


β€” xoxo πŸ’– source/version: ./net/core Β· date: October 2026 Β· page: netdev_has_any_upper_dev(9) πŸŽ€

πŸ“¦ where this page comes from