summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2002-09-26 21:21:46 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2002-09-26 21:21:46 -0700
commit7b5eb7a9c0a9b8efd45ca86b79a3970f936b60aa (patch)
treedaa5c05f9f86573098fc3e2f7e4615d87c34e72c /include/linux/device.h
parent82ba39ba11aeca738a3a389c2a6fc2123c252156 (diff)
add hotplug support to the driver core for devices, if their bus type supports it.
Diffstat (limited to 'include/linux/device.h')
-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 6053349e4303..ef76b15fa930 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -67,6 +67,8 @@ struct bus_type {
int (*match)(struct device * dev, struct device_driver * drv);
struct device * (*add) (struct device * parent, char * bus_id);
+ int (*hotplug) (struct device *dev, char **envp,
+ int num_envp, char *buffer, int buffer_size);
};