libstoragemgmt_targetport.h File Reference
#include "libstoragemgmt_common.h"
Go to the source code of this file.
Function Documentation
lsm_target_port LSM_DLL_EXPORT* lsm_target_port_copy |
( |
lsm_target_port * |
tp |
) |
|
Duplicated a target port record. NOTE: Make sure to free resources with a call to lsm_target_port_record_free
- Parameters:
-
- Returns:
- NULL on memory allocation failure, else duplicated record.
const char LSM_DLL_EXPORT* lsm_target_port_id_get |
( |
lsm_target_port * |
tp |
) |
|
Returns the ID of the target port
- Parameters:
-
| tp | lsm_target_port record |
- Returns:
- ID, NULL on error
const char LSM_DLL_EXPORT* lsm_target_port_network_address_get |
( |
lsm_target_port * |
tp |
) |
|
Returns the network address
- Parameters:
-
| tp | lsm_target_port record |
- Returns:
- Network address, NULL on error
const char LSM_DLL_EXPORT* lsm_target_port_physical_address_get |
( |
lsm_target_port * |
tp |
) |
|
Returns the physical address
- Parameters:
-
| tp | lsm_target_port record |
- Returns:
- Physical address, NULL on error
const char LSM_DLL_EXPORT* lsm_target_port_physical_name_get |
( |
lsm_target_port * |
tp |
) |
|
Returns the physical name
- Parameters:
-
| tp | lsm_target_port record |
- Returns:
- Physical name, NULL on error
int LSM_DLL_EXPORT lsm_target_port_record_array_free |
( |
lsm_target_port * |
tp[], |
|
|
uint32_t |
size | |
|
) |
| | |
Frees the resources for an array for lsm_target_port
- Parameters:
-
| tp | Array to release memory for |
| size | Number of elements. |
- Returns:
- LSM_ERR_OK on success, else error reason.
int LSM_DLL_EXPORT lsm_target_port_record_free |
( |
lsm_target_port * |
tp |
) |
|
Frees the resources for a lsm_system
- Parameters:
-
- Returns:
- LSM_ERR_OK on success, else error reason.
const char LSM_DLL_EXPORT* lsm_target_port_service_address_get |
( |
lsm_target_port * |
tp |
) |
|
Returns the service address
- Parameters:
-
| tp | lsm_target_port record |
- Returns:
- Service address, NULL on error
const char LSM_DLL_EXPORT* lsm_target_port_system_id_get |
( |
lsm_target_port * |
tp |
) |
|
Returns the system_id
- Parameters:
-
| tp | lsm_target_port record |
- Returns:
- System id, NULL on error
Returns the type of target port
- Parameters:
-
| tp | lsm_target_port record |
- Returns:
- enumerated value