summaryrefslogtreecommitdiff
path: root/kern/shutdown.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/shutdown.h')
-rw-r--r--kern/shutdown.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/kern/shutdown.h b/kern/shutdown.h
index f7bc1879..f61079b3 100644
--- a/kern/shutdown.h
+++ b/kern/shutdown.h
@@ -20,6 +20,7 @@
#include <stdnoreturn.h>
+#include <kern/init.h>
#include <kern/plist.h>
struct shutdown_ops {
@@ -27,13 +28,22 @@ struct shutdown_ops {
void (*reset)(void);
};
-void shutdown_setup(void);
-
-void shutdown_register_shell_cmds(void);
-
void shutdown_register(struct shutdown_ops *ops, unsigned int priority);
noreturn void shutdown_halt(void);
noreturn void shutdown_reboot(void);
+/*
+ * This init operation provides :
+ * - registration of shutdown operations
+ */
+INIT_OP_DECLARE(shutdown_bootstrap);
+
+/*
+ * This init operation provides :
+ * - all shutdown operations have been registered
+ * - module fully initialized
+ */
+INIT_OP_DECLARE(shutdown_setup);
+
#endif /* _KERN_SHUTDOWN_H */