最終更新:2015-10-23 (金) 13:09:50 (3107d)
bus_type
Top / bus_type
The bus type of the device
struct bus_type { const char *name; const char *dev_name; struct device *dev_root; struct device_attribute *dev_attrs; /* use dev_groups instead */ const struct attribute_group **bus_groups; const struct attribute_group **dev_groups; const struct attribute_group **drv_groups; int (*match)(struct device *dev, struct device_driver *drv); int (*uevent)(struct device *dev, struct kobj_uevent_env *env); int (*probe)(struct device *dev); int (*remove)(struct device *dev); void (*shutdown)(struct device *dev); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); const struct dev_pm_ops *pm; struct iommu_ops *iommu_ops; struct subsys_private *p; struct lock_class_key lock_key; };
例
- platform_bus_type
- usb_bus_type
- hid_bus_type (Linux 2.6.28~)
- pmu_bus?
- clockevents_subsys?
- soc_bus_type?
- isa_bus_type?
- usb_serial_bus_type?
- i2c_bus_type?
- ide_bus_type?
- fw_bus_type?
- acpi_bus_type
- scsi_bus_type?