.\" 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_ADD" "" "06 October 2005" "" ""
.SH NAME
device_add \- add device to device hierarchy.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int device_add (struct device * \fIdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
device.
.SH "DESCRIPTION"
.PP
This is part 2 of \fBdevice_register\fR, though may be called
separately _iff_ \fBdevice_initialize\fR has been called separately.
.PP
This adds it to the kobject hierarchy via \fBkobject_add\fR, adds it
to the global and sibling lists for the device, then
adds it to the other relevant subsystems of the driver model.