HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
QUERY_MODE_TO_COS_MAPPING
Number of entries returned in the data buffer.
total_num_entries
Total number of entries available. A value greater than num_entries indicates that not all the available entries
were returned.
Each entry in the data buffer consists of the following parameters:
mode_to_cos_mapping_data.overlay_size
The size of the returned
mode_to_cos_mapping_data structure, and therefore the offset to the start of the next
entry in the data buffer.
When your application needs to go through the returned buffer to find each
mode_to_cos_mapping_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.
mode_to_cos_mapping_data.mode_name
Mode name. This is an 8-byte type-A EBCDIC string, padded on the right with spaces if the name is shorter
than 8 characters.
mode_to_cos_mapping_data.cos_name
Class of service name associated with the mode name. This is an 8-byte type-A EBCDIC string, padded on
the right with spaces if the name is shorter than 8 characters.
3.139.4 Returned Parameters: Parameter Check
If the verb does not execute because of a parameter error, SNAplus2 returns the following parameters:
primary_rc
AP_PARAMETER_CHECK
secondary_rc
Possible values are:
AP_INVALID_MODE_NAME
The list_options parameter was set to AP_LIST_INCLUSIVE to list all entries starting from the
supplied name, but the mode_name parameter was not valid.
AP_INVALID_LIST_OPTION
The list_options parameter was not set to a valid value.
Appendix B, Common Return Codes lists further secondary return codes associated with
AP_PARAMETER_CHECK,
which are common to all NOF verbs.
3.139.5 Returned Parameters: Other Conditions
Appendix B, Common Return Codes lists further combinations of primary and secondary return codes that are
common to all NOF verbs.
556