netdev_has_upper_dev(9)

netdev_has_upper_dev9

Check if device is linked to an upper device

Usage

bool netdev_has_upper_dev(struct net_device * dev, struct net_device * upper_dev);

Arguments

dev

device

upper_dev

upper device to check

Overview

Find out if a device is linked to specified upper device and return true in case it is. Note that this checks only immediate upper device, not through a complete stack of devices. The caller must hold the RTNL lock.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.