Go to the source code of this file.
|
| #define | IFCOMMON_COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage, _payload, _stop_on_first_success) |
| | Construct "if<xxx>" command descriptor.
|
◆ IFCOMMON_COMMAND_DESC
| #define IFCOMMON_COMMAND_DESC |
( |
| _struct, |
|
|
| _options, |
|
|
| _min_args, |
|
|
| _max_args, |
|
|
| _usage, |
|
|
| _payload, |
|
|
| _stop_on_first_success ) |
Value: { \
_max_args, _usage ), \
? _payload : _payload ) ), \
.stop_on_first_success = _stop_on_first_success, \
}
#define NULL
NULL pointer (VOID *)
typeof(acpi_finder=acpi_find)
ACPI table finder.
static union @024010030001061367220137227263210031030210157031 opts
"cert<xxx>" option list
static struct net_device * netdev
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
Construct "if<xxx>" command descriptor.
- Parameters
-
| _struct | Options structure type |
| _options | Option descriptor array |
| _check_args | Remaining argument checker |
| _usage | Command usage |
- Return values
-
| _command | Command descriptor |
Definition at line 58 of file ifmgmt_cmd.h.
◆ FILE_LICENCE()
| FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL | | ) |
|
◆ FILE_SECBOOT()
| FILE_SECBOOT |
( |
PERMITTED | | ) |
|
◆ ifcommon_exec()
Execute if<xxx> command.
- Parameters
-
| argc | Argument count |
| argv | Argument list |
| cmd | Command descriptor |
| payload | Command to execute |
| verb | Verb describing the action of the command |
- Return values
-
Definition at line 52 of file ifmgmt_cmd.c.
53 {
57 int i;
59
60
63
65
66 for ( i =
optind ; i < argc ; i++ ) {
68 continue;
71 return 0;
72 }
73 }
74 } else {
75
80 return 0;
81 }
82 }
83 }
84
86}
struct arbelprm_rc_send_wqe rc
int optind
Current option index.
#define ENODEV
No such device.
#define for_each_netdev(netdev)
Iterate over all network devices.
int parse_netdev(char *text, struct net_device **netdev)
Parse network device name.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
int(* payload)(struct net_device *netdev, void *opts)
Payload.
struct command_descriptor cmd
Command descriptor.
int stop_on_first_success
Stop on first success.
References cmd, ifcommon_command_descriptor::cmd, ENODEV, for_each_netdev, netdev, optind, opts, parse_netdev(), parse_options(), ifcommon_command_descriptor::payload, rc, and ifcommon_command_descriptor::stop_on_first_success.
Referenced by autoboot_exec(), ifclose_exec(), ifconf_exec(), iflinkwait_exec(), ifopen_exec(), ifstat_exec(), iwlist_exec(), iwstat_exec(), and startpxe_exec().
◆ ifconf_exec()
| int ifconf_exec |
( |
int | argc, |
|
|
char ** | argv ) |
|
extern |
The "ifconf" command.
- Parameters
-
| argc | Argument count |
| argv | Argument list |
- Return values
-
Definition at line 250 of file ifmgmt_cmd.c.
250 {
252}
int ifcommon_exec(int argc, char **argv, struct ifcommon_command_descriptor *ifcmd)
Execute if<xxx> command.
static struct ifcommon_command_descriptor ifconf_cmd
"ifconf" command descriptor
References ifcommon_exec(), and ifconf_cmd.
Referenced by COMMAND(), and COMMAND().