Linux Kernel设备驱动模型之 struct device_type

来源:互联网 发布:虚无世界2java路径 编辑:程序博客网 时间:2024/06/05 19:45
设备模型之设备类型:
/* * 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, struct kobj_uevent_env *env); char *(*devnode)(struct device *dev, umode_t *mode,    kuid_t *uid, kgid_t *gid); void (*release)(struct device *dev);

 const struct dev_pm_ops *pm;};

 
 
 
0 0
原创粉丝点击