Fibre Channel management commands.
Definition in file fcmgmt_cmd.c.
| static int fcels_exec |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
The "fcels" command.
- Parameters
-
| argc | Argument count |
| argv | Argument list |
- Return values
-
Issue ELS
Definition at line 167 of file fcmgmt_cmd.c.
192 id = &
opts.peer_port_id;
196 id = &
opts.port->ptp_link_port_id;
203 if ( (
rc =
fcels (
opts.port,
id, handler ) ) != 0 )
struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
int fcels(struct fc_port *port, struct fc_port_id *peer_port_id, struct fc_els_handler *handler)
Issue Fibre Channel ELS.
int optind
Current option index.
static struct command_descriptor fcels_cmd
"fcels" command descriptor
A Fibre Channel extended link services handler.
static int parse_fc_els_handler(char *text, struct fc_els_handler **handler)
Parse Fibre Channel ELS handler name.
struct fc_port_id fc_f_port_id
F_Port contoller port ID.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
struct list_head fc_ports
#define list_first_entry(list, type, member)
Get the container of the first entry in a list.
Port is attached to a fabric.
A Fibre Channel port identifier.
static int fc_link_ok(struct fc_link_state *link)
Check Fibre Channel link state.
uint8_t id
Request identifier.
struct fc_port_id fc_empty_port_id
Unassigned port ID.
#define ENODEV
No such device.
static union @447 opts
"cert<xxx>" option list
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
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.