.\" 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_NEW_INDEX" "" "06 October 2005" "" "" .SH NAME dev_new_index \- allocate an ifindex .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int dev_new_index ( \fIvoid\fB); \fR .SH "ARGUMENTS" .TP \fB\fIvoid\fB\fR no arguments .SH "DESCRIPTION" .PP .PP Returns a suitable unique value for a new device interface number. The caller must hold the rtnl semaphore or the dev_base_lock to be sure it remains unique.