|
iPXE
|
Fibre Channel management commands. More...
#include <stdio.h>#include <errno.h>#include <getopt.h>#include <strings.h>#include <ipxe/fc.h>#include <ipxe/fcels.h>#include <ipxe/command.h>#include <ipxe/parseopt.h>#include <ipxe/tables.h>#include <usr/fcmgmt.h>Go to the source code of this file.
Data Structures | |
| struct | fcstat_options |
| "fcstat" options More... | |
| struct | fcels_options |
| "fcels" options More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | parse_fc_port (char *text, struct fc_port **port) |
| Parse Fibre Channel port name. | |
| static int | parse_fc_port_id (char *text, struct fc_port_id *port_id) |
| Parse Fibre Channel port ID. | |
| static int | parse_fc_els_handler (char *text, struct fc_els_handler **handler) |
| Parse Fibre Channel ELS handler name. | |
| static int | fcstat_exec (int argc, char **argv) |
| The "fcstat" command. | |
| static int | fcels_exec (int argc, char **argv) |
| The "fcels" command. | |
| COMMAND (fcstat, fcstat_exec) | |
| Fibre Channel management commands. | |
| COMMAND (fcels, fcels_exec) | |
Variables | |
| static struct option_descriptor | fcstat_opts [] = {} |
| "fcstat" option list | |
| static struct command_descriptor | fcstat_cmd |
| "fcstat" command descriptor | |
| static struct option_descriptor | fcels_opts [] |
| "fcels" option list | |
| static struct command_descriptor | fcels_cmd |
| "fcels" command descriptor | |
Fibre Channel management commands.
Definition in file fcmgmt_cmd.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Parse Fibre Channel port name.
| text | Text |
| port | Fibre Channel port |
| rc | Return status code |
Definition at line 50 of file fcmgmt_cmd.c.
References assert, ENODEV, fc_port_find(), NULL, port, and printf().
|
static |
Parse Fibre Channel port ID.
| text | Text |
| port_id | Fibre Channel port ID |
| rc | Return status code |
Definition at line 72 of file fcmgmt_cmd.c.
References assert, EINVAL, fc_id_aton(), NULL, printf(), and rc.
|
static |
Parse Fibre Channel ELS handler name.
| text | Text |
| handler | Fibre Channel ELS handler |
| rc | Return status code |
Definition at line 94 of file fcmgmt_cmd.c.
References ENOENT, FC_ELS_HANDLERS, for_each_table_entry, printf(), and strcasecmp().
Referenced by fcels_exec().
|
static |
The "fcstat" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 122 of file fcmgmt_cmd.c.
References fc_peers, fc_ports, fcpeerstat(), fcportstat(), fcstat_cmd, fc_peer::list, list_for_each_entry, opts, parse_options(), peer, port, and rc.
Referenced by COMMAND().
|
static |
The "fcels" command.
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Issue ELS
Definition at line 167 of file fcmgmt_cmd.c.
References ENODEV, fc_empty_port_id, fc_f_port_id, fc_link_ok(), FC_PORT_HAS_FABRIC, fc_ports, fcels(), fcels_cmd, id, list_first_entry, memcmp(), optind, opts, parse_fc_els_handler(), parse_options(), printf(), and rc.
Referenced by COMMAND().
| COMMAND | ( | fcstat | , |
| fcstat_exec | ) |
Fibre Channel management commands.
References fcstat_exec().
| COMMAND | ( | fcels | , |
| fcels_exec | ) |
References fcels(), and fcels_exec().
|
static |
|
static |
"fcstat" command descriptor
Definition at line 112 of file fcmgmt_cmd.c.
Referenced by fcstat_exec().
|
static |
"fcels" option list
Definition at line 149 of file fcmgmt_cmd.c.
|
static |
"fcels" command descriptor
Definition at line 157 of file fcmgmt_cmd.c.
Referenced by fcels_exec().