int lsm_target_port_list (lsm_connect *conn, const char *search_key, const char *search_value, lsm_target_port **target_ports, uint32_t *count, lsm_flag flags);
Search key(NULL for all). Valid search keys are: "id", and "system_id".
Output pointer of lsm_target_port array. Return value must be freed with a call to lsm_target_port_record_array_free.
Output pointer of uint32_t. Number of target ports.
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
Gets a list of target ports on this connection. Target port are the front-end port of storage system which storage user/client connect to and get storage service from. Target port properties could be retrieved by these functions:
Error code as enumerated by 'lsm_error_number'.
On success or searched value not found.
When any argument is NULL or invalid flags or invalid search