82 claim_parameters ( params );
83 params_put ( params );
128 goto err_parse_options;
137 goto err_parse_value;
145 goto err_parse_parameters;
151 goto err_add_parameter;
158 err_parse_parameters:
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct arbelprm_rc_send_wqe rc
struct command param_commands [] __command
Request parameter commands.
int optind
Current option index.
A request parameter list.
static int param_exec(int argc, char **argv)
The "param" command.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
static int params_exec(int argc, char **argv)
The "params" command.
#define ENOMEM
Not enough space.
Parse command-line options.
int parse_string(char *text, char **value)
Parse string value.
static struct option_descriptor params_opts[]
"params" option list
pseudo_bit_t value[0x00020]
#define MAX_ARGUMENTS
No maximum number of arguments.
char * concat_args(char **args)
Concatenate arguments.
struct parameters * create_parameters(const char *name)
Create request parameter list.
int parse_flag(char *text __unused, int *flag)
Parse flag.
static void(* free)(struct refcnt *refcnt))
int parse_parameters(char *text, struct parameters **params)
Parse request parameter list name.
struct hv_monitor_parameter param[4][32]
Parameters.
Command line option parsing.
Option does not take an argument.
#define PARAMETER_FORM
Request parameter is a form parameter.
const char * name
Name of the command.
static struct command_descriptor param_cmd
"param" command descriptor
int header
Parameter is a header.
char * params
Parameter list name.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
Option requires an argument.
A command-line option descriptor.
struct ena_aq_header header
Header.
static struct command_descriptor params_cmd
"params" command descriptor
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
struct parameter * add_parameter(struct parameters *params, const char *key, const char *value, unsigned int flags)
Add request parameter.
static union @438 opts
"cert<xxx>" option list
static struct option_descriptor param_opts[]
"param" option list
#define NULL
NULL pointer (VOID *)
#define PARAMETER_HEADER
Request parameter is a header parameter.