52 "<address> <length>" );
int parse_integer(char *text, unsigned int *value)
Parse integer value.
int imgmem(const char *name, userptr_t data, size_t len)
Create image from block of memory.
struct arbelprm_rc_send_wqe rc
static int imgmem_exec(int argc, char **argv)
The "imgmem" command.
int optind
Current option index.
static struct command_descriptor imgmem_cmd
"imgmem" command descriptor
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
userptr_t phys_to_user(unsigned long phys_addr)
Convert physical address to user pointer.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Parse command-line options.
int parse_string(char *text, char **value)
Parse string value.
Command line option parsing.
static struct option_descriptor imgmem_opts[]
"imgmem" option list
const char * name
Name of the command.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
Option requires an argument.
A command-line option descriptor.
uint8_t data[48]
Additional event data.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
static union @438 opts
"cert<xxx>" option list
struct command imgmem_commands [] __command
Read memory command.