HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
QUERY_TP
unsigned char lu_name[8]; /* LU name */
unsigned char lu_alias[8]; /* LU alias */
unsigned char tp_name[64]; /* TP name */
} QUERY_TP;
typedef struct tp_data
{
AP_UINT16 overlay_size; /* size of returned entry */
unsigned char tp_name[64]; /* TP name */
unsigned char description[32]; /* resource description */
unsigned char reserv1[16]; /* reserved */
AP_UINT16 instance_limit; /* maximum instance count */
AP_UINT16 instance_count; /* current instance count */
AP_UINT16 locally_started_count; /* locally started instance */
/* count */
AP_UINT16 remotely_started_count; /* remotely started instance */
/* count */
unsigned char reserva[20]; /* reserved */
} TP_DATA;
3.164.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_QUERY_TP
buf_ptr
A pointer to a data buffer that SNAplus2 will use to return the requested information.
buf_size
Size of the supplied data buffer.
num_entries
Maximum number of TPs for which data should be returned. To request data for a specic TP rather than a
range, specify the value 1. To return as many entries as possible, specify zero; in this case, SNAplus2 will
return the maximum number of entries that can be accommodated in the supplied data buffer.
list_options
The position in the list of TPs from which SNAplus2 should begin to return data. Possible values are:
AP_FIRST_IN_LIST
Start at the rst entry in the list.
AP_LIST_INCLUSIVE
Start at the entry specied by the combination of LU name and TP name.
AP_LIST_FROM_NEXT
Start at the entry immediately following the entry specied by the combination of LU name and TP
name.
For more information about how the list is ordered and how the application can obtain specic entries from
it, see Section 2.7, List Options For QUERY_* Verbs.
lu_name
LU name. This is an 8-byte type-A EBCDIC string, padded on the right with spaces if the name is shorter
than 8 characters. To specify that the LU is identied by its alias rather than its LU name, set this parameter
680