iPXE
|
SAN commands. More...
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
#include <ipxe/uri.h>
#include <ipxe/sanboot.h>
#include <usr/autoboot.h>
Go to the source code of this file.
Data Structures | |
struct | sanboot_options |
"sanboot" options More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | sanboot_core_exec (int argc, char **argv, struct command_descriptor *cmd, int default_flags, int no_root_path_flags) |
The "sanboot", "sanhook" and "sanunhook" commands. More... | |
static int | sanhook_exec (int argc, char **argv) |
The "sanhook" command. More... | |
static int | sanboot_exec (int argc, char **argv) |
The "sanboot" command. More... | |
static int | sanunhook_exec (int argc, char **argv) |
The "sanunhook" command. More... | |
Variables | |
union { | |
struct option_descriptor sanboot [7] | |
struct option_descriptor sanhook [2] | |
struct option_descriptor sanunhook [1] | |
} | opts |
"sanboot" option list More... | |
static struct command_descriptor | sanhook_cmd |
"sanhook" command descriptor More... | |
static struct command_descriptor | sanboot_cmd |
"sanboot" command descriptor More... | |
static struct command_descriptor | sanunhook_cmd |
"sanunhook" command descriptor More... | |
struct command sanboot_commands [] | __command |
SAN commands. More... | |
SAN commands.
Definition in file sanboot_cmd.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
The "sanboot", "sanhook" and "sanunhook" commands.
argc | Argument count |
argv | Argument list |
default_flags | Default set of flags for uriboot() |
no_root_path_flags | Additional flags to apply if no root path is present |
rc | Return status code |
Definition at line 110 of file sanboot_cmd.c.
References cmd, count, ENOMEM, san_boot_config::extra, san_boot_config::filename, flags, san_boot_config::label, memset(), NULL, optind, opts, parse_uri(), rc, reparse_options(), san_default_drive(), uri_put(), uriboot(), URIBOOT_NO_SAN_DESCRIBE, URIBOOT_NO_SAN_UNHOOK, and san_boot_config::uuid.
Referenced by sanboot_exec(), sanhook_exec(), and sanunhook_exec().
|
static |
The "sanhook" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 175 of file sanboot_cmd.c.
References sanboot_core_exec(), sanhook_cmd, URIBOOT_NO_SAN_BOOT, and URIBOOT_NO_SAN_UNHOOK.
|
static |
The "sanboot" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 188 of file sanboot_cmd.c.
References sanboot_cmd, sanboot_core_exec(), and URIBOOT_NO_SAN_UNHOOK.
|
static |
The "sanunhook" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 200 of file sanboot_cmd.c.
References sanboot_core_exec(), sanunhook_cmd, URIBOOT_NO_SAN_BOOT, and URIBOOT_NO_SAN_DESCRIBE.
struct option_descriptor sanboot[7] |
Definition at line 63 of file sanboot_cmd.c.
struct option_descriptor sanhook[2] |
Definition at line 65 of file sanboot_cmd.c.
struct option_descriptor sanunhook[1] |
Definition at line 67 of file sanboot_cmd.c.
union { ... } opts |
"sanboot" option list
Referenced by sanboot_core_exec().
|
static |
"sanhook" command descriptor
Definition at line 88 of file sanboot_cmd.c.
Referenced by sanhook_exec().
|
static |
"sanboot" command descriptor
Definition at line 93 of file sanboot_cmd.c.
Referenced by sanboot_exec().
|
static |
"sanunhook" command descriptor
Definition at line 98 of file sanboot_cmd.c.
Referenced by sanunhook_exec().
struct command sanboot_commands [] __command |
SAN commands.
Definition at line 207 of file sanboot_cmd.c.