struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
struct command poweroff_command __command
"poweroff" command
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
int poweroff(void)
Power off system.
Parse command-line options.
char * strerror(int errno)
Retrieve string representation of error number.
Command line option parsing.
static struct option_descriptor poweroff_opts[]
"poweroff" option list
const char * name
Name of the command.
static struct command_descriptor poweroff_cmd
"poweroff" command descriptor
A command-line option descriptor.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static union @438 opts
"cert<xxx>" option list
#define NULL
NULL pointer (VOID *)
static int poweroff_exec(int argc, char **argv)
The "poweroff" command.