.\" 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 "MISC_REGISTER" "" "06 October 2005" "" "" .SH NAME misc_register \- register a miscellaneous device .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int misc_register (struct miscdevice * \fImisc\fB); \fR .SH "ARGUMENTS" .TP \fB\fImisc\fB\fR device structure .SH "DESCRIPTION" .PP Register a miscellaneous device with the kernel. If the minor number is set to MISC_DYNAMIC_MINOR a minor number is assigned and placed in the minor field of the structure. For other cases the minor number requested is used. .PP The structure passed is linked into the kernel and may not be destroyed until it has been unregistered. .PP A zero is returned on success and a negative errno code for failure.