HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
QUERY_DSPU_TEMPLATE
template_name
Name of the DSPU template for which information is required, or the name to be used as an index into the
list. This is an 8-byte string in a locally displayable character set. This parameter is ignored if
list_options
is set to AP_FIRST_IN_LIST.
3.119.3 Returned Parameters: Successful Execution
If the verb executes successfully, SNAplus2 returns the following parameters:
primary_rc
AP_OK
buf_size
Length of the information returned in the buffer.
total_buf_size
Returned value indicating the size of buffer that would have been required to return all the list information
requested. This may be higher than buf_size.
num_entries
The number of entries actually returned.
total_num_entries
Total number of entries that could have been returned. This may be higher than num_entries.
dspu_template_data.overlay_size
The number of bytes in this entry, including any downstream LU templates, and the offset to the next entry
returned (if any).
When your application needs to go through the returned buffer to find each
dspu_template_data structure in
turn, it must use this value to move to the correct offset for the next data structure, and must not use the
C sizeof() operator. This is because the size of the returned overlay may increase in future releases of
SNAplus2; using the returned overlay size ensures that your application will continue to work with future
releases.
dspu_template_data.template_name
Name of the DSPU template.
dspu_template_data.description
Resource description, as defined on the DEFINE_DSPU_TEMPLATE verb.
dspu_template_data.max_instance
The maximum number of instances of the template which can be active simultaneously.
dspu_template_data.active_instance
The number of instances of the template which are currently active.
dspu_template_data.num_of_dslu_templates
Number of downstream LU templates for this downstream PU template. Following this parameter are
num_of_dslu_templates entries, one for each DSLU template.
dslu_template_data.overlay_size
The number of bytes in this entry, and the offset to the next entry returned (if any).
When your application needs to go through the returned buffer to find each
dslu_template_data structure in
turn, it must use this value to move to the correct offset for the next data structure, and must not use the
448