struct class_device * class_device_create (struct class * cls, dev_t devt, struct device * device, char * fmt, ...);
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.
the struct class passed to this function must have previously been created with a call to class_create.