.\" 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_ALLOC_NAME" "" "06 October 2005" "" ""
.SH NAME
dev_alloc_name \- allocate a name for a device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int dev_alloc_name (struct net_device * \fIdev\fB, const char * \fIname\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
device
.TP
\fB\fIname\fB\fR
name format string
.SH "DESCRIPTION"
.PP
Passed a format string - eg ``ltd'' it will try and find a suitable
id. Not efficient for many devices, not called a lot. The caller
must hold the dev_base or rtnl lock while allocating the name and
adding the device in order to avoid duplicates. Returns the number
of the unit assigned or a negative errno code.