/*
* The type of device, “struct device” is embedded in. A class
* or bus can contain devices of different types
* like “partitions” and “disks”, “mouse” and “event”.
* This identifies the device type and carries type-specific
* information, equivalent to the kobj_type of a kobject.
* If “name” is specified, the uevent will contain it in
* the DEVTYPE variable.
*/
/*
*设备的类型
*/
struct device_type {
const char *name;
const struct attribute_group **groups;
int (*uevent) (struct device *dev, strcut kobj_uevent_env *env);
char *(*devnode) (struct device *dev, mode_t *mode);
void (*release) (strcut device *dev);
};