summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2002-10-24 01:01:51 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2002-10-24 01:01:51 -0700
commitdf0cca210c3be40f9738891a15b0e00b7313a85c (patch)
treeed26217882bf0497327a172ef921bf0bfa34bf8d /include
parentbe75e7716cfe4d9141e7421c168b3a6df74c22e1 (diff)
driver core: add support for calling /sbin/hotplug when classes are found and removed from the system.
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 3dd9a4081298..2e0948e96d68 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -187,6 +187,8 @@ struct device_class {
int (*add_device)(struct device *);
void (*remove_device)(struct device *);
+ int (*hotplug)(struct device *dev, char **envp,
+ int num_envp, char *buffer, int buffer_size);
};
extern int devclass_register(struct device_class *);