.\" 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 "DEVICE_REGISTER" "9" "09 October 2005" "" "" .SH NAME device_register \- register a device with the system. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int device_register (struct device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR pointer to the device structure .SH "DESCRIPTION" .PP This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy.