next up previous contents index
Next: 15.14.11 base_multiboot_find: find a Up: (X86 PC) MultiBoot Startup Previous: 15.14.9 base_multiboot_init_mem: physical memory

15.14.10 base_multiboot_init_cmdline: command-line preprocessing

   

SYNOPSIS

#include <oskit/x86/pc/base_multiboot.h>

void base_multiboot_init_cmdline(void);

DESCRIPTION

This function breaks up the kernel command line string passed by the boot loader into independent C-language-compatible argument strings. Option strings are separated by any normal whitespace characters (spaces, tabs, newlines, etc.). In addition, strings containing an equals sign (`=') are added to the environ array rather than the argv array, effectively providing the OS with a minimal initial environment that can be specified by the user (through the boot loader) and examined by the OS using the normal getenv mechanism (see Section 14.4.17).

XXX example.

XXX currently no quoting support.

XXX currently just uses ``kernel'' as argv[0].

DEPENDENCIES

phystokv
15.6.2
strlen
14.4.18
strtok
14.4.18
malloc
14.5.2
memcpy
14.4.18
panic
14.8.3



Utah Flux Research Group