diff options
Diffstat (limited to 'kern/arg.h')
-rw-r--r-- | kern/arg.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -27,12 +27,16 @@ #include <stdbool.h> +#include <kern/init.h> + #define ARG_CMDLINE_MAX_SIZE 256 /* - * Initialize the arg module. + * Set the command line string. + * + * This function must be called before calling the kernel main entry point. */ -void arg_setup(const char *cmdline); +void arg_set_cmdline(const char *cmdline); /* * Log command line information. @@ -54,4 +58,10 @@ bool arg_present(const char *name); */ const char * arg_value(const char *name); +/* + * This init operation provides : + * - command line arguments can be retrieved + */ +INIT_OP_DECLARE(arg_setup); + #endif /* _KERN_ARG_H */ |