|
ginnOS
The reference: libc, the libraries and the kernel
|
the kernel command line (cmdline.h). More...
#include "kernel/cmdline.h"#include "common/string.h"#include "kernel/klog/klog.h"#include "kernel/memory/phys.h"Macros | |
| #define | CMDLINE_MAX 256 |
Functions | |
| void | cmdline_init (const boot_info_t *boot) |
| keep a copy of the command line of the bootloader. | |
| bool | cmdline_has (const char *flag) |
| true if the command line has this word as a flag. | |
| bool | cmdline_get_uint (const char *key, uint32_t *value) |
| read the value of "key=N" from the command line, as a decimal number. | |
the kernel command line (cmdline.h).
| #define CMDLINE_MAX 256 |
| void cmdline_init | ( | const boot_info_t * | boot | ) |
keep a copy of the command line of the bootloader.
call it once at boot, after paging_init (the line is read through the direct map).
| boot | the boot information; cmdline_addr 0 means no line. |
| bool cmdline_has | ( | const char * | flag | ) |
true if the command line has this word as a flag.
| flag | the word, for example "nosmp". |