|
ginnOS
The reference: libc, the libraries and the kernel
|
the kernel command line that the bootloader gives: words split by spaces, each a flag ("nosmp") or a key and a value ("maxcpus=2"). More...
Go to the source code of this file.
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 that the bootloader gives: words split by spaces, each a flag ("nosmp") or a key and a value ("maxcpus=2").
| 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". |