'\" t .\" Title: dev_get_by_name_rcu .\" 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 "DEV_GET_BY_NAME_RCU" "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" dev_get_by_name_rcu \- find a device by its name .SH "SYNOPSIS" .HP \w'struct\ net_device\ *\ dev_get_by_name_rcu('u .BI "struct net_device * dev_get_by_name_rcu(struct\ net\ *\ " "net" ", const\ char\ *\ " "name" ");" .SH "ARGUMENTS" .PP \fInet\fR .RS 4 the applicable net namespace .RE .PP \fIname\fR .RS 4 name to find .RE .SH "DESCRIPTION" .PP Find an interface by name\&. If the name is found a pointer to the device is returned\&. If the name is not found then \fBNULL\fR is returned\&. The reference counters are not incremented so the caller must be careful with locks\&. The caller must hold RCU lock\&. .SH "COPYRIGHT" .br