'\" t .\" Title: netdev_upper_dev_link .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "NETDEV_UPPER_DEV_LIN" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" netdev_upper_dev_link \- Add a link to the upper device .SH "SYNOPSIS" .HP \w'int\ netdev_upper_dev_link('u .BI "int netdev_upper_dev_link(struct\ net_device\ *\ " "dev" ", struct\ net_device\ *\ " "upper_dev" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device .RE .PP \fIupper_dev\fR .RS 4 new upper device .RE .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br