.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "__DEV_GET_BY_NAME" 9 "August 2005" "Kernel Hackers Manual" "LINUX" .SH NAME __dev_get_by_name \- find a device by its name .SH "SYNOPSIS" .ad l .hy 0 .HP 43 struct\ net_device\ *\ \fB__dev_get_by_name\ \fR\ (const\ char\ *\ \fIname\fR); .ad .hy .SH "ARGUMENTS" .TP \fIname\fR name to find .SH "DESCRIPTION" .PP Find an interface by name\&. Must be called under RTNL semaphore or \fIdev_base_lock\fR\&. 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\&.