1FCOE_GetPortList(3FCOFEC)oE Port Management Library FunctioFnCsOE_GetPortList(3FCOE)
2
3
4

NAME

6       FCOE_GetPortList - get a list of FCoE ports
7

SYNOPSIS

9       cc [ flag... ] file... -lfcoe [ library... ]
10       #include <libfcoe.h>
11
12       int FCOE_GetPortList(unsigned int *port_num,
13            struct fcoe_port_attr **portlist);
14
15

PARAMETERS

17       port_num    A  pointer  to  an integer that, on successful return, con‐
18                   tains the number of FCoE ports in the system.
19
20
21       portlist    A pointer to a pointer to an fcoe_port_attr structure that,
22                   on  successful return, contains a list of the FCoE ports in
23                   the system.
24
25

DESCRIPTION

27       The FCOE_GetPortList() function retrieves a list of  FCoE  ports.  When
28       the  caller is finished using the list, it must free the memory used by
29       the list by calling free(3C).
30

RETURN VALUES

32       The following values are returned:
33
34       FCOE_STATUS_ERROR_BUSY
35
36           The fcoe driver is busy and cannot complete the operation.
37
38
39       FCOE_STATUS_ERROR_INVAL_ARG
40
41           The value specified for port_num or portlist was not valid.
42
43
44       FCOE_STATUS_ERROR_OPEN_DEV
45
46           Failed to open fcoe device.
47
48
49       FCOE_STATUS_OK
50
51           The API call was successful.
52
53

ATTRIBUTES

55       See attributes(5) for descriptions of the following attributes:
56
57
58
59
60       ┌─────────────────────────────┬─────────────────────────────┐
61       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │Interface Stability          │Committed                    │
64       ├─────────────────────────────┼─────────────────────────────┤
65       │MT-Level                     │Safe                         │
66       └─────────────────────────────┴─────────────────────────────┘
67

SEE ALSO

69       free(3C), libfcoe(3LIB), attributes(5)
70
71
72
73SunOS 5.11                        1 Apr 2009           FCOE_GetPortList(3FCOE)
Impressum