'\" t .\" Title: netdev_has_upper_dev .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "NETDEV_HAS_UPPER_DEV" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_has_upper_dev \- Check if device is linked to an upper device .SH "SYNOPSIS" .HP \w'bool\ netdev_has_upper_dev('u .BI "bool netdev_has_upper_dev(struct\ net_device\ *\ " "dev" ", struct\ net_device\ *\ " "upper_dev" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device .RE .PP \fIupper_dev\fR .RS 4 upper device to check .RE .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br