|
iPXE
|
Command line and initrd passed to iPXE at runtime. More...
#include <stddef.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <errno.h>#include <assert.h>#include <ipxe/init.h>#include <ipxe/image.h>#include <ipxe/script.h>#include <realmode.h>Go to the source code of this file.
Macros | |
| #define | cmdline_phys __use_data16 ( cmdline_phys ) |
| #define | initrd_phys __use_data16 ( initrd_phys ) |
| #define | initrd_len |
| #define | colour &cmdline_image |
| Colour for debug messages. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| uint32_t | __bss16 (cmdline_phys) |
| Command line physical address. | |
| uint32_t | __bss16 (initrd_phys) |
| initrd physical address | |
| uint32_t | __bss16 (initrd_len) |
| initrd length | |
| static void | cmdline_image_free (struct refcnt *refcnt) |
| Free command line image. | |
| static void | cmdline_strip (char *cmdline, const char *cruft) |
| Strip unwanted cruft from command line. | |
| static int | cmdline_init (void) |
| Initialise command line. | |
| static int | initrd_init (void) |
| Initialise initrd. | |
| static void | runtime_init (void) |
| Initialise command line and initrd. | |
| struct startup_fn runtime_startup_fn | __startup_fn (STARTUP_NORMAL) |
| Command line and initrd initialisation function. | |
Variables | |
| static char * | cmdline_copy |
| Internal copy of the command line. | |
| static struct image | cmdline_image |
| Embedded script representing the command line. | |
Command line and initrd passed to iPXE at runtime.
Definition in file runtime.c.
| #define cmdline_phys __use_data16 ( cmdline_phys ) |
Definition at line 49 of file runtime.c.
Referenced by __bss16(), and cmdline_init().
| #define initrd_phys __use_data16 ( initrd_phys ) |
Definition at line 56 of file runtime.c.
Referenced by __bss16(), and initrd_init().
| #define initrd_len | ( | void | ) |
Definition at line 63 of file runtime.c.
Referenced by __bss16(), bzimage_check_initrds(), fdt_bootargs(), fdt_create(), initrd_init(), and lkrn_exec().
| #define colour &cmdline_image |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| uint32_t __bss16 | ( | cmdline_phys | ) |
| uint32_t __bss16 | ( | initrd_phys | ) |
| uint32_t __bss16 | ( | initrd_len | ) |
|
static |
Free command line image.
Definition at line 69 of file runtime.c.
References cmdline_copy, container_of, DBGC, free, and free_image().
|
static |
Strip unwanted cruft from command line.
| cmdline | Command line |
| cruft | Initial substring of cruft to strip |
Definition at line 94 of file runtime.c.
References cmdline, colour, DBGC, strchr(), strcpy(), and strstr().
Referenced by cmdline_init().
|
static |
Initialise command line.
| rc | Return status code |
Definition at line 119 of file runtime.c.
References cmdline, cmdline_copy, cmdline_image, cmdline_phys, cmdline_strip(), colour, DBGC, ENOMEM, image_put(), isspace(), rc, register_image(), strdup(), strerror(), and strlen().
Referenced by runtime_init().
|
static |
Initialise initrd.
| rc | Return status code |
Definition at line 177 of file runtime.c.
References colour, DBGC, ENOMEM, image_memory(), initrd_len, and initrd_phys.
Referenced by runtime_init().
|
static |
Initialise command line and initrd.
Definition at line 210 of file runtime.c.
References cmdline_init(), initrd_init(), and rc.
Referenced by __startup_fn().
| struct startup_fn runtime_startup_fn __startup_fn | ( | STARTUP_NORMAL | ) |
Command line and initrd initialisation function.
References __startup_fn, runtime_init(), and STARTUP_NORMAL.
|
static |
Internal copy of the command line.
Definition at line 66 of file runtime.c.
Referenced by cmdline_image_free(), and cmdline_init().
|
static |
Embedded script representing the command line.
Definition at line 78 of file runtime.c.
Referenced by cmdline_init().