diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index da7221913114..e1e164f81eea 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -328,6 +328,13 @@ extern struct class_device *class_device_create(struct class *cls, | |||
328 | __attribute__((format(printf,5,6))); | 328 | __attribute__((format(printf,5,6))); |
329 | extern void class_device_destroy(struct class *cls, dev_t devt); | 329 | extern void class_device_destroy(struct class *cls, dev_t devt); |
330 | 330 | ||
331 | struct device_type { | ||
332 | struct device_attribute *attrs; | ||
333 | int (*uevent)(struct device *dev, char **envp, int num_envp, | ||
334 | char *buffer, int buffer_size); | ||
335 | void (*release)(struct device *dev); | ||
336 | }; | ||
337 | |||
331 | /* interface for exporting device attributes */ | 338 | /* interface for exporting device attributes */ |
332 | struct device_attribute { | 339 | struct device_attribute { |
333 | struct attribute attr; | 340 | struct attribute attr; |
@@ -356,6 +363,7 @@ struct device { | |||
356 | 363 | ||
357 | struct kobject kobj; | 364 | struct kobject kobj; |
358 | char bus_id[BUS_ID_SIZE]; /* position on parent bus */ | 365 | char bus_id[BUS_ID_SIZE]; /* position on parent bus */ |
366 | struct device_type *type; | ||
359 | unsigned is_registered:1; | 367 | unsigned is_registered:1; |
360 | struct device_attribute uevent_attr; | 368 | struct device_attribute uevent_attr; |
361 | struct device_attribute *devt_attr; | 369 | struct device_attribute *devt_attr; |