.\" 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 "CLASS_DEVICE_CREATE" "9" "09 October 2005" "" "" .SH NAME class_device_create \- creates a class device and registers it with sysfs .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct class_device * class_device_create (struct class * \fIcls\fB, dev_t \fIdevt\fB, struct device * \fIdevice\fB, char * \fIfmt\fB, \fI\&...\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcls\fB\fR -- undescribed -- .TP \fB\fIdevt\fB\fR -- undescribed -- .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 This function can be used by char device classes. 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 class passed to this function must have previously been created with a call to \fBclass_create\fR\&.