diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
commit | dd78bb04876f66e967773d6dd03ea9534fe43cc2 (patch) | |
tree | 4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/shutdown.h | |
parent | 85292d947faabe8828810946c7a8067ef228d6fe (diff) |
Switch to initialization operations
Diffstat (limited to 'kern/shutdown.h')
-rw-r--r-- | kern/shutdown.h | 18 |
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 */ |