|
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. | |
| static int | sanhook_exec (int argc, char **argv) |
| The "sanhook" command. | |
| static int | sanboot_exec (int argc, char **argv) |
| The "sanboot" command. | |
| static int | sanunhook_exec (int argc, char **argv) |
| The "sanunhook" command. | |
| COMMAND (sanhook, sanhook_exec) | |
| SAN commands. | |
| 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 | |
| static struct command_descriptor | sanhook_cmd |
| "sanhook" command descriptor | |
| static struct command_descriptor | sanboot_cmd |
| "sanboot" command descriptor | |
| static struct command_descriptor | sanunhook_cmd |
| "sanunhook" command descriptor | |
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.
Referenced by COMMAND().
|
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.
Referenced by COMMAND().
|
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.
Referenced by COMMAND().
| COMMAND | ( | sanhook | , |
| sanhook_exec | ) |
SAN commands.
References sanhook, and sanhook_exec().
| COMMAND | ( | sanboot | , |
| sanboot_exec | ) |
References sanboot, and sanboot_exec().
| COMMAND | ( | sanunhook | , |
| sanunhook_exec | ) |
References sanunhook, and sanunhook_exec().
| struct option_descriptor sanboot[7] |
Definition at line 64 of file sanboot_cmd.c.
Referenced by COMMAND().
| struct option_descriptor sanhook[2] |
Definition at line 66 of file sanboot_cmd.c.
Referenced by COMMAND().
| struct option_descriptor sanunhook[1] |
Definition at line 68 of file sanboot_cmd.c.
Referenced by COMMAND().
| union { ... } opts |
"sanboot" option list
|
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 PROVIDE_REQUIRING_SYMBOL(), and sanboot_exec().
|
static |
"sanunhook" command descriptor
Definition at line 99 of file sanboot_cmd.c.
Referenced by sanunhook_exec().