'\" t .\" Title: dev_get_by_index_rcu .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "DEV_GET_BY_INDEX_RCU" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "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" dev_get_by_index_rcu \- find a device by its ifindex .SH "SYNOPSIS" .HP \w'struct\ net_device\ *\ dev_get_by_index_rcu('u .BI "struct net_device * dev_get_by_index_rcu(struct\ net\ *\ " "net" ", int\ " "ifindex" ");" .SH "ARGUMENTS" .PP \fIstruct net * net\fR .RS 4 the applicable net namespace .RE .PP \fIint ifindex\fR .RS 4 index of device .RE .SH "DESCRIPTION" .PP Search for an interface by index\&. Returns \fBNULL\fR if the device is not found or a pointer to the device\&. The device has not had its reference counter increased so the caller must be careful about locking\&. The caller must hold RCU lock\&. .SH "COPYRIGHT" .br