.\" 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 "DEVFS_ALLOC_DEVNUM" "" "06 October 2005" "" "" .SH NAME devfs_alloc_devnum \- Allocate a device number. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp dev_t devfs_alloc_devnum (umode_t \fImode\fB); \fR .SH "ARGUMENTS" .TP \fB\fImode\fB\fR The file mode (must be block device or character device). .SH "DESCRIPTION" .PP Returns the allocated device number, else NODEV if none are available. This routine is thread safe and may block.