68 goto err_parse_options;
73 goto err_parse_setting;
82 busdev = ( prev + 1 );
103 printf (
"Could not store \"%s\": %s\n",
struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
int optind
Current option index.
static struct command_descriptor usbscan_cmd
"usbscan" command descriptor
int storen_setting(struct settings *settings, const struct setting *setting, unsigned long value)
Store numeric value of setting.
int parse_autovivified_setting(char *text, struct named_setting *setting)
Parse and autovivify setting name.
#define ENOENT
No such file or directory.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
int usb_find_next(struct usb_device **usb, uint16_t *busdev)
Find next USB device.
Parse command-line options.
const struct setting_type * type
Setting type.
int fetchn_setting(struct settings *settings, const struct setting *setting, struct settings **origin, struct setting *fetched, unsigned long *value)
Fetch numeric value of setting.
char * strerror(int errno)
Retrieve string representation of error number.
Command line option parsing.
struct command usb_commands [] __command
USB commands.
const char * name
Name of the command.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static struct option_descriptor usbscan_opts[]
"usbscan" option list
Universal Serial Bus (USB)
A command-line option descriptor.
#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 usbscan_exec(int argc, char **argv)
"usbscan" command