68 goto err_parse_options;
73 goto err_parse_setting;
103 printf (
"Could not store \"%s\": %s\n",
struct arbelprm_rc_send_wqe rc
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int printf(const char *fmt,...)
Write a formatted string to the console.
int optind
Current option index.
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.
uint16_t busdevfn
PCI bus:dev.fn address.
int pci_find_next(struct pci_device *pci, uint32_t *busdevfn)
Find next device on PCI bus.
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.
struct command pci_commands [] __command
PCI commands.
Command line option parsing.
const char * name
Name of the command.
static int pciscan_exec(int argc, char **argv)
"pciscan" command
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 struct command_descriptor pciscan_cmd
"pciscan" command descriptor
static struct option_descriptor pciscan_opts[]
"pciscan" option list