|
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) | |
| FILE_SECBOOT (PERMITTED) | |
| 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... | |
| COMMAND (sanhook, sanhook_exec) | |
| SAN commands. More... | |
| COMMAND (sanboot, sanboot_exec) | |
| COMMAND (sanunhook, sanunhook_exec) | |
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... | |
SAN commands.
Definition in file sanboot_cmd.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
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 111 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 176 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 189 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 201 of file sanboot_cmd.c.
References sanboot_core_exec(), sanunhook_cmd, URIBOOT_NO_SAN_BOOT, and URIBOOT_NO_SAN_DESCRIBE.
| COMMAND | ( | sanhook | , |
| sanhook_exec | |||
| ) |
SAN commands.
| COMMAND | ( | sanboot | , |
| sanboot_exec | |||
| ) |
| COMMAND | ( | sanunhook | , |
| sanunhook_exec | |||
| ) |
| struct option_descriptor sanboot[7] |
Definition at line 64 of file sanboot_cmd.c.
| struct option_descriptor sanhook[2] |
Definition at line 66 of file sanboot_cmd.c.
| struct option_descriptor sanunhook[1] |
Definition at line 68 of file sanboot_cmd.c.
| union { ... } opts |
"sanboot" option list
Referenced by sanboot_core_exec().
|
static |
"sanhook" command descriptor
Definition at line 89 of file sanboot_cmd.c.
Referenced by sanhook_exec().
|
static |
"sanboot" command descriptor
Definition at line 94 of file sanboot_cmd.c.
Referenced by sanboot_exec().
|
static |
"sanunhook" command descriptor
Definition at line 99 of file sanboot_cmd.c.
Referenced by sanunhook_exec().
1.8.15