6.2  WindNet STREAMS Configuration

Table 9 shows the constants that can be modified to customize the operational parameters of the services provided with WindNet STREAMS.

Table 9.   WindNet STREAMS Configuration Constants with Default Values


Constant
Default Value


STREAMS_PUSH_MAX
9
STREAMS_MSGSZ_MAX
4096
STREAMS_CTLSZ_MAX
1024
STREAMS_MEM_MAX
102400
STREAMS_MEM_PART_ADDR
0
STREAMS_MEM_PART_SIZE
0
STREAMS_STRERR_OUTPUT_DIR
/tmp
STREAMS_STRACE_OUTPUT_DIR
/tmp
STREAMS_PROTO_INIT_RTN
The name of the protocol initialization hook routine.

6.2.1  STREAMS_PUSH_MAX

This constant is used to specify the maximum number of STREAMS modules that WindNet STREAMS allows to be stacked on top of a single STREAMS data path.

6.2.2  STREAMS_MSGSZ_MAX

This constant designates the maximum number of bytes that can be placed by a user application in a WindNet STREAMS M_DATA message. The application creates an M_DATA message by calling write( ), putmsg( ) or putpmsg( ). In the case of a write( ) call, a message greater than the maximum specified is broken into messages of size STREAMS_MSGSZ_MAX. With putmsg( ) and putpmsg( ), a data part of the message greater than the specified maximum yields the error ERANGE; a message of any size can be allowed by setting the value of STREAMS_MSGSZ_MAX to 0.

6.2.3  STREAMS_CTLSZ_MAX

This constant specifies the maximum number of bytes that can be placed in a control part of a WindNet STREAMS M_PROTO or M_PCPROTO message by a user application. The application creates either type of message with putmsg( ) or putpmsg( ). If either of these calls exceeds the value set in STREAMS_MSGSZ_MAX for the control portion of the message, the routines generate the error ERANGE.

6.2.4  STREAMS_MEM_MAX

This constant sets the maximum size of memory that can be allocated by WindNet STREAMS from the system memory pool or a user-specified partition. For applications that demand large amounts of memory, you should increase the value of this constant accordingly.

6.2.5  STREAMS_MEM_PART_ADDR

This constant specifies a default value that indicates that memory used by WindNet STREAMS must be allocated from the system pool. If a memory address is specified, the system attempts to create a memory partition using this address. If the partition cannot be created, the WindNet STREAMS package fails its initialization.

6.2.6  STREAMS_MEM_PART_SIZE

This constant should be set to the maximum size of the memory partition. Its value should never exceed the value set for the constant STREAMS_MEM_MAX.

6.2.7  STREAMS_STRERR_OUTPUT_DIR

This constant is set to the location where the files created by the strerr utility will be stored. The value of this constant is ignored if the strerr utility is not included.

6.2.8  STREAMS_STRACE_OUTPUT_DIR

This constant is set to the location where the files created by the strace utility will be stored. The value of this constant is ignored if strace is not included.

6.2.9  STREAMS_PROTO_INIT_RTN

This constant is set to the name of the user-provided protocol initialization hook routine.