.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "__DEV_GET_BY_NAME" "" "06 October 2005" "" ""
.SH NAME
__dev_get_by_name \- find a device by its name
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct net_device * __dev_get_by_name (const char * \fIname\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIname\fB\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 NULL is returned. The
reference counters are not incremented so the caller must be
careful with locks.