---
name: "netdev_has_any_upper_dev"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/netdev_has_any_upper_dev"
---

# netdev\_has\_any\_upper\_dev(9)

Check if device is linked to some device

## NAME

netdev\_has\_any\_upper\_dev - Check if device is linked to some device

## SYNOPSIS

**bool netdev\_has\_any\_upper\_dev(struct net\_device \*** *dev***);**

## ARGUMENTS

*dev*

device

## 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.

## COPYRIGHT
