netdev_upper_dev_link(9)

netdev_upper_dev_link9

Add a link to the upper device

Usage

int netdev_upper_dev_link(struct net_device * dev, struct net_device * upper_dev);

Arguments

dev

device

upper_dev

new upper device

Overview

Adds a link to device which is upper to this one. The caller must hold the RTNL lock. On a failure a negative errno code is returned. On success the reference counts are adjusted and the function returns zero.

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.