cc [flags.\|.\|.] -I /usr/cluster/include file -L /usr/cluster/lib -l dsdev #include <rgm/libdsdev.h> scha_err_t scds_get_port_list(scds_handle_t handle, scds_port_list_t **port_list);
The scds_get_port_list() function returns a list of port-protocol pairs used by the resource. Values for the protocol type are defined in the header file netinet/in.h.
Free the memory allocated and returned by this function with scds_free_port_list().
The following parameters are supported:
.na handle .ad The handle returned from scds_initialize()
.na port_list .ad List of port-protocol pairs used by the resource group
The scds_get_port_list() function returns the following:
.na 0 .ad The function succeeded.
.na nonzero .ad The function failed.
.na SCHA_ERR_NOERR .ad Indicates the function succeeded.
.na Other values .ad Indicate the function failed. See scha_calls(3HA) for the meaning of failure codes.
.na /usr/cluster/include/scha.h .ad Include file
.na /usr/cluster/lib/libscha.so .ad Library
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| Availability | SUNWscdev |
| Interface Stability | Evolving |
scds_free_port_list(3HA), scha_calls(3HA), attributes(5)