Go to main content

STREAMS Programming Guide

Exit Print View

Updated: November 2020
 
 

Tunable Parameters

Certain system parameters referred to by STREAMS are configurable when building a new operating system. For more information, see the file /etc/system and the STREAMS Parameters in Oracle Solaris 11.4 Tunable Parameters Reference Manual. These parameters are:

nstrpush

Maximum number of modules that can be pushed onto a single stream. Minimum number of modules should be 8.

strmsgsz

Maximum number of bytes of information that a single system call can pass to a stream to be placed into the data part of a message (in M_DATA blocks). Any write exceeding this size is broken into multiple messages. A putmsg with a data part exceeding this size fails with ERANGE. If STRMSGSZ is set to 0, the number of bytes passed to a stream is infinite. For more information, see the putmsg(2) and write(2) man page.

strctlsz

Maximum number of bytes of information that a single system call can pass to a stream to be placed into the control part of a message (in an M_PROTO or M_PCPROTO block). A putmsg with a control part that exceeds this size fails with ERANGE.