1lsm_target_port_list(3)   Libstoragemgmt C API Manual  lsm_target_port_list(3)
2
3
4

NAME

6       lsm_target_port_list - Gets a list of target ports on this connection.
7

SYNOPSIS

9       int  lsm_target_port_list  (lsm_connect  *conn, const char *search_key,
10       const char *search_value,  lsm_target_port  **target_ports[],  uint32_t
11       *count, lsm_flag flags);
12

ARGUMENTS

14       conn        Valid connection.
15
16       search_key  Search key(NULL for all).  Valid search keys are: "id", and
17                   "system_id".
18
19       search_value
20                   Search value.
21
22       target_ports[]
23                   Output pointer of lsm_target_port array.  Return value must
24                   be freed with a call to lsm_target_port_record_array_free.
25
26       count       Output pointer of uint32_t. Number of target ports.
27
28       flags       Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
29

VERSION

31       1.0
32

DESCRIPTION

34       Gets  a  list  of target ports on this connection.  Target port are the
35       front-end port of storage system which storage user/client  connect  to
36       and  get  storage  service  from.   Target port properties could be re‐
37       trieved by these functions:
38           * lsm_target_port_id_get
39           * lsm_target_port_type_get
40           * lsm_target_port_system_id_get
41           * lsm_target_port_network_address_get
42           * lsm_target_port_physical_address_get
43           * lsm_target_port_physical_name_get
44           * lsm_target_port_service_address_get
45

CAPABILITY

47       LSM_CAP_TARGET_PORTS
48

RETURN

50       Error code as enumerated by 'lsm_error_number'.
51           * LSM_ERR_OK
52               On success or searched value not found.
53           * LSM_ERR_INVALID_ARGUMENT
54               When any argument is NULL or invalid flags or invalid search
55               key.
56           * LSM_ERR_NO_SUPPORT
57               Not supported.
58
59
60
61November 2021                lsm_target_port_list      lsm_target_port_list(3)
Impressum