struct device *parent; struct device_private *p; struct kobject kobj; const char *init_name; /* initial name of the device */ const struct device_type *type; struct mutex mutex; /* mutex to synchronize calls to its driver.*/ struct bus_type *bus; /* type of bus device is on */ ...
在Linux内核中,struct device对象的定义如下: ``` struct device { struct device *parent; struct device_private *p; struct kobject kobj; const char *init_name; struct device_type *type; struct bus_type *bus; struct driver *driver; void *platform_data; struct dev_archdata *archdata; void *...
conststructdevice_type*type; structmutexmutex;/* mutex to synchronize calls to * its driver. */ structbus_type*bus;/* type of bus device is on */ structdevice_driver*driver;/* which driver has allocated this device */ void*platform_data;/* Platform specific data, device core doesn't t...
int bus_for_each_dev(struct bus_type *bus, struct device *start,void *data, int (*fn)(struct device *, void *)) { ... while ((dev = next_device(&i)) && !error) error = fn(dev, data); ... } static int __driver_attach(struct device *dev, void *data) { ... int ret...
1 struct bus_type { 2 char * name; 3 4 struct subsystem subsys; 5 struct kset drivers; 6 struct kset devices; 7 8 struct bus_attribute * bus_attrs; 9 struct device_attribute * dev_attrs; 10 struct driver_attribute * drv_attrs; 11 12 int (*match)(struct device * dev, struct ...
device_driver结构体,一、定义:structdevice_driver结构体被定义在/include/linux/device.h,原型是:124structdevice_driver{125constchar*name;126structbus_type*bus;127128structkobjectkobj;129structklistklist_devices;130structklist_node...
WWAN_DEVICE_SERVICE_SUPPORTED_COMMANDS結構 WWAN_DEVICE_SLOT_MAPPING_INFO結構 WWAN_DEVICE_TYPE列舉 WWAN_DRIVER_CAPS 結構 WWAN_DRX_PARAMS列舉 WWAN_EMERGENCY_MODE列舉 WWAN_GET_SLOT_INFO 結構 WWAN_GET_VISIBLE_PROVIDERS 結構 WWAN_GSM_NMR結構 WWAN_GSM_NMR_INFO 結構 WWAN_GSM_SERVING_CELL_INFO 結構 WW...
网络设备;结构体 网络释义
enum dm9000_type type;void (*inblk)(void __iomem *port, void *data, int length);void (*outblk)(void __iomem *port, void *data, int length);void (*dumpblk)(void __iomem *port, int length);struct device*dev; /* parent device */ struct resource*addr_res; /* ...
struct block_device *s_bdev; struct backing_dev_info *s_bdi; struct mtd_info *s_mtd; struct hlist_node s_instances; unsigned int s_quota_types; struct quota_info s_dquot; struct sb_writers s_writers; void *s_fs_info; u32 s_time_gran; ...