summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-04 01:47:13 +0100
committerFelix Fietkau <nbd@openwrt.org>2011-11-04 01:47:13 +0100
commitb6d7a8bc9822667cb851bec465c3ad7cd6714e90 (patch)
treeaa678109a8dc43e36f77a5a3f5610681e1037370 /device.h
parentbb12877893467f7f7f7540e9f9fa7b3bc59e7748 (diff)
add a hotplug op for preparing an interface bridge so that it's ready when an external process adds interfaces
Diffstat (limited to 'device.h')
-rw-r--r--device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/device.h b/device.h
index a3728f3..0d9e6f4 100644
--- a/device.h
+++ b/device.h
@@ -111,6 +111,7 @@ struct device {
};
struct device_hotplug_ops {
+ int (*prepare)(struct device *dev);
int (*add)(struct device *main, struct device *member);
int (*del)(struct device *main, struct device *member);
};