HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
QUERY_BUFFER_AVAILABILITY
AP_UINT32 max_buf_res_use_bytes; /* max rsrv buffer usage - bytes */
AP_UINT32 max_peak_usage; /* maximum peak usage */
unsigned char max_throttle_status; /* maximum throttle status */
unsigned char max_buf_use_status; /* maximum congestion status */
unsigned char debug_param[32]; /* reserved */
unsigned char reserv3[8]; /* reserved */
} QUERY_BUFFER_AVAILABILITY;
3.94.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_QUERY_BUFFER_AVAILABILITY
reset_max_values
Specify whether SNAplus2 should reset the values for the max_* parameters (after returning them
on this verb) to match the current values of these parameters. This ensures that a subsequent
QUERY_BUFFER_AVAILABILITY verb will return the maximum values reached since this verb, rather
than the maximum values reached since the system was started (or since the values for the max_* parameters
were last reset). Possible values are:
AP_YES
Reset the values for the max_* parameters to match the current values.
AP_NO
Do not reset the values for the max_* parameters.
3.94.3 Returned Parameters: Successful Execution
If the verb executes successfully, SNAplus2 returns the following parameters. Values returned in other elds are
for use by SNAplus2 support personnel.
primary_rc
AP_OK
secondary_rc
Not used.
buf_avail
The maximum amount of STREAMS buffer space available to SNAplus2, in bytes, as dened by a
SET_BUFFER_AVAILABILITY verb.
buf_total_count
The number of buffers currently allocated to SNAplus2 components.
buf_total_bytes
The total amount of storage in buffers currently allocated to SNAplus2 components.
buf_rsrv_count
The total number of buffers reserved.
buf_rsrv_bytes
The total amount of storage in buffers reserved, in bytes.
354