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

10.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 9.4.17).

XXX example.

XXX currently no quoting support.

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

DEPENDENCIES

phystokv
10.6.2
strlen
9.4.18
strtok
9.4.18
malloc
9.5.2
memcpy
9.4.18
panic
9.7.3



University of Utah Flux Research Group