cc [ flag... ] file... -lfcoe [ library... ] #include <libfcoe.h>
FCOE_STATUS FCOE_GetPortList( FCOE_UINT32 *port_num, FCOE_PORT_ATTRIBUTE ** portlist);
A pointer to an integer that, on successful return, contains the number of FCoE ports in the system.
A pointer to a pointer to an fcoe_port_attr structure that, on successful return, contains a list of the FCoE ports in the system.
The FCOE_GetPortList() function retrieves a list of FCoE ports. When the caller is finished using the list, it must free the memory used by the list by calling free (3C).
The following values are returned:
The fcoe driver is busy and cannot complete the operation.
The value specified for port_num or portlist was not valid.
Failed to open fcoe device.
The API call was successful.
See attributes(5) for descriptions of the following attributes: