|
iPXE
|
Power off command. More...
#include <stdio.h>#include <string.h>#include <getopt.h>#include <ipxe/command.h>#include <ipxe/parseopt.h>#include <ipxe/reboot.h>Go to the source code of this file.
Data Structures | |
| struct | poweroff_options |
| "poweroff" options More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | poweroff_exec (int argc, char **argv) |
| The "poweroff" command. More... | |
| COMMAND (poweroff, poweroff_exec) | |
| "poweroff" command More... | |
Variables | |
| static struct option_descriptor | poweroff_opts [] = {} |
| "poweroff" option list More... | |
| static struct command_descriptor | poweroff_cmd |
| "poweroff" command descriptor More... | |
Power off command.
Definition in file poweroff_cmd.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
The "poweroff" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 56 of file poweroff_cmd.c.
References opts, parse_options(), poweroff(), poweroff_cmd, printf(), rc, and strerror().
| COMMAND | ( | poweroff | , |
| poweroff_exec | |||
| ) |
"poweroff" command
|
static |
"poweroff" option list
Definition at line 43 of file poweroff_cmd.c.
|
static |
"poweroff" command descriptor
Definition at line 46 of file poweroff_cmd.c.
Referenced by poweroff_exec().
1.8.15