kernel: add boot argument parsing

This commit is contained in:
2023-12-27 17:34:59 +00:00
parent b8934d220c
commit 53e756eca0
3 changed files with 142 additions and 0 deletions

14
include/socks/arg.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef SOCKS_ARG_H_
#define SOCKS_ARG_H_
#include <stdbool.h>
#include <socks/status.h>
#define CMDLINE_MAX 4096
extern kern_status_t parse_cmdline(const char *cmdline);
extern const char *arg_value(const char *arg_name);
extern bool arg_is_set(const char *arg_name);
#endif