static struct option_descriptor reboot_opts[]
"reboot" option list
struct arbelprm_rc_send_wqe rc
static struct command_descriptor reboot_cmd
"reboot" command descriptor
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Parse command-line options.
int parse_flag(char *text __unused, int *flag)
Parse flag.
int warm
Perform a warm reboot.
Command line option parsing.
struct command reboot_command __command
"reboot" command
Option does not take an argument.
const char * name
Name of the command.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
A command-line option descriptor.
void reboot(int warm)
Reboot system.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
static union @438 opts
"cert<xxx>" option list
#define NULL
NULL pointer (VOID *)
static int reboot_exec(int argc, char **argv)
The "reboot" command.