summaryrefslogtreecommitdiffstats
path: root/discover/udev.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-04-02 14:33:38 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-04-02 14:33:38 +0800
commit310de3ab00b77b09a897b93ed0272b82ebc4f73b (patch)
treee8badb454dce3afa10dd168a0f529c4b15e63b73 /discover/udev.h
parentedcfca78ac49793e295ac97328942321f39e3996 (diff)
downloadpetitboot-310de3ab00b77b09a897b93ed0272b82ebc4f73b.zip
petitboot-310de3ab00b77b09a897b93ed0272b82ebc4f73b.tar.gz
discover: add reinit path
Currently, changes to settings doesn't take effect while the discover server is running. This means we need to reboot for any changes (eg, to network settings) to take effect. This change introduces a reinit path. Triggered by a configuration update, this will cause the device handler to drop all of its devices (and boot options), and restart the discovery process from the device sources. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/udev.h')
-rw-r--r--discover/udev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/discover/udev.h b/discover/udev.h
index edd18fa..c0fa5c0 100644
--- a/discover/udev.h
+++ b/discover/udev.h
@@ -8,4 +8,6 @@ struct waitset;
struct pb_udev *udev_init(struct device_handler *handler,
struct waitset *waitset);
+void udev_reinit(struct pb_udev *udev);
+
#endif /* _UDEV_H */
OpenPOWER on IntegriCloud