.\" 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 "DRM_SYSFS_DEVICE_ADD" "9" "09 October 2005" "" "" .SH NAME drm_sysfs_device_add \- adds a class device to sysfs for a character driver .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct class_device * drm_sysfs_device_add (struct drm_sysfs_class * \fIcs\fB, dev_t \fIdev\fB, struct device * \fIdevice\fB, const char * \fIfmt\fB, \fI\&...\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcs\fB\fR pointer to the struct drm_sysfs_class that this device should be registered to. .TP \fB\fIdev\fB\fR the dev_t for the device to be added. .TP \fB\fIdevice\fB\fR a pointer to a struct device that is assiociated with this class device. .TP \fB\fIfmt\fB\fR string for the class device's name .TP \fB\fI\&...\fB\fR variable arguments .SH "DESCRIPTION" .PP A struct class_device will be created in sysfs, registered to the specified class. A ``dev'' file will be created, showing the dev_t for the device. The pointer to the struct class_device will be returned from the call. Any further sysfs files that might be required can be created using this pointer. .SH "NOTE" .PP the struct drm_sysfs_class passed to this function must have previously been created with a call to \fBdrm_sysfs_create\fR\&.