VxWorks Reference Manual : Libraries
strmShow - library for STREAMS debugging (STREAMS Option)
strmDebugInit( ) - include STREAMS debugging facility in VxWorks (STREAMS Option)
strmOpenStreamsShow( ) - display all open streams in the STREAMS subsystem (STREAMS Option)
strmQueueShow( ) - display all queues in a particular stream (STREAMS Option)
strmBandShow( ) - display messages in a particular band (STREAMS Option)
strmMessageShow( ) - display information about all messages in a stream (STREAMS Option)
strmQueueStatShow( ) - display statistics about queues system-wide (STREAMS Option)
strmMsgStatShow( ) - display statistics about system-wide usage of message blocks (STREAMS Option)
strmStatShow( ) - display statistics about streams (STREAMS Option)
strmDriverModShow( ) - list configuration information for modules and devices (STREAMS Option)
This library consists of routines to facilitate debugging of STREAMS drivers developed under VxWorks. This library provides information about streams, queues, and messages. It supports the provision of system-wide statistics, as well as information about specific streams and queues.
strmDebugInit( ) - include STREAMS debugging facility in VxWorks (STREAMS Option)
STATUS strmDebugInit ()
This routine includes the STREAMS debugging facility in VxWorks. It is called in usrNetwork.c to ensure the inclusion of this library into VxWorks.
N/A
strmOpenStreamsShow( ) - display all open streams in the STREAMS subsystem (STREAMS Option)
void strmOpenStreamsShow ( char * msg /* message to display */ )
This routine displays information about all open streams in the system. If msg is not NULL, it is displayed before the open streams information. This routine displays the following information: address of the stream, flags, major number associated with the stream, and minor number associated with the stream
N/A
strmQueueShow( ) - display all queues in a particular stream (STREAMS Option)
int strmQueueShow ( STHP sth, /* pointer to the Stream Head */ char * msg /* message to display */ )
This routine displays all queues on the stream sth. If msg is not NULL, it is displayed before the rest of the information.
N/A
strmBandShow( ) - display messages in a particular band (STREAMS Option)
void strmBandShow ( char * msg, /* user specified Message to display */ queue_t * q, /* queue pointer to display messages from */ int pri /* priority Band to display */ )
This routine displays information about all messages in a particular band. It displays the message type, band, and length.
N/A
strmMessageShow( ) - display information about all messages in a stream (STREAMS Option)
void strmMessageShow ( queue_t * q /* pointer to a queue in the stream */ )
This routine displays information about all messages in a stream. The information shown is the message type, band, and size, and the address of the message block.
N/A
strmQueueStatShow( ) - display statistics about queues system-wide (STREAMS Option)
void strmQueueStatShow ( void )
This routine displays statistics about the system-wide usage of queues. The statistics shown are:
- the number of queues allocated,
- the number of queues in use,
- the total number of queues configured,
- the maximum number of queues that can be allocated,
- the number of queue allocation failures.
N/A
strmMsgStatShow( ) - display statistics about system-wide usage of message blocks (STREAMS Option)
void strmMsgStatShow ( void )
This routine displays statistics about the system-wide usage of STREAMS message blocks. The statistics shown are:
- the size of the message block,
- the number of message blocks available for this size,
- the number of message blocks of this size in use,
- the total number of message blocks allocated for this size,
- the total memory used by all the message blocks of this size,
- the number of calls to allocb( ) that have failed for this message-block size,
- the number of bufcall( ) requests pending due to allocb( ) failure for message blocks of this size.
This routine also prints a brief summary of:
- the number of message blocks allocated for all sizes,
- the number of data blocks allocated for all sizes,
- the total memory used by STREAMS buffers system-wide.
N/A
strmStatShow( ) - display statistics about streams (STREAMS Option)
void strmStatShow ( void )
This routine displays the following statistics about streams:
- the number of streams allocated,
- the number of streams in use,
- the total number of streams configured,
- the maximum number of streams that can be configured,
- the number of stream allocation failures.
N/A
strmDriverModShow( ) - list configuration information for modules and devices (STREAMS Option)
void strmDriverModShow ( int format )
This routine displays configuration information about the STREAMS modules and devices. It displays the following information under the respective column heads.
- Name
- name of the device
- Type
- STREAMS module or STREAMS device
- Major
- device major number, applicable only to devices
- idnum
- module ID number
- idname
- name as specified in the module_info structure
- minpsz
- minimum packet size allowed in the module or driver
- maxpsz
- maximum packet size allowed in the module or driver
- lowat
- low water mark
- hiwat
- high water mark
N/A