HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (QUERY Verbs)
QUERY_BUFFER_AVAILABILITY
Chapter 4532
QUERY_BUFFER_AVAILABILITY
This verb returns information about the amount of STREAMS buffers
that SNAplus2 is currently using, the maximum amount it has used, and
the maximum amount available (specified using the
SET_BUFFER_AVAILABILITY verb). This allows you to check
STREAMS buffer usage and set the limit appropriately, to ensure that
sufficient buffers are available for SNAplus2 components and for other
programs on the HP-UX computer. The verb also returns additional
internal values relating to buffer usage, for use by SNAplus2 support
personnel.
VCB Structure
typedef struct query_buffer_availability
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
AP_UINT32 reset_max_values; /* set stored max values to */
/* current */
AP_UINT32 buf_avail; /* maximum buffer space */
/* available */
AP_UINT32 buf_total_count; /* current buffer usage - count */
AP_UINT32 buf_total_bytes; /* current buffer usage - bytes */
AP_UINT32 buf_rsrv_count; /* buffers reserved - count */
AP_UINT32 buf_rsrv_bytes[2]; /* buffers reserved - bytes */
AP_UINT32 buf_res_use_count; /* usage of reserved buffers */
/* - count */
AP_UINT32 buf_res_use_bytes; /* usage of reserved buffers */
/* - bytes */
AP_UINT32 peak_usage; /* peak usage */
AP_UINT32 peak_decay; /* peak decay */
unsigned char throttle_status; /* throttle status */
unsigned char buf_use_status; /* congestion status */
AP_UINT32 max_buf_total_count; /* maximum buffer usage - count */
AP_UINT32 max_buf_total_bytes; /* maximum buffer usage - bytes */
AP_UINT32 max_buf_rsrv_count; /* max buffers reserved - count */
AP_UINT32 max_buf_rsrv_bytes[2]; /* max buffers reserved - bytes */
AP_UINT32 max_buf_res_use_count; /* max rsrv buffer usage - count */
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 */