HPlogo STREAMS/UX for the HP 9000 Reference Manual > Chapter 3 Differences Between STREAMS/UX and System V Release 4 STREAMS

HP-UX Changes to STREAMS/UX Drivers and Modules

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

The unsupported drivers and modules include:

  • connld

  • console

  • ports

  • sxt

  • xt

NOTE: Some STREAMS-based terminal I/O functionality is contained in a separate product called STREAMS-TIO. It is part of the HP-UX runtime product. See the following manpages (which are part of the STREAMS-TIO product): pts(7), ptm(7), ldterm(7), pterm(7), and pckt(7).

STREAMS/UX provides the following drivers and modules:

  • clone

  • strlog

  • sad

  • echo

  • sc

  • timod

  • tirdwr

  • pipemod

Entries for these drivers and modules can be found in the STREAMS/UX master file. General information about these drivers follows. Information about the stream head is also included. Differences between the HP-UX and SVR4.2 log and sad drivers are also described.

NOTE: Any driver or module not explicitly listed as supported in this section is not supported.

clone

Major Number:

72

clone is used to provide cloning. The major number of the device file for a cloneable driver must be the clone driver's major number, 72. The minor number is set to the real major number of the device.

strlog

Major Number:

73

Module ID Number:

44

Maximum Packet Size:

INFPSZ

Minimum Packet Size:

0

High Water Mark:

2048

Low Water Mark:

128

The STREAMS/UX log driver is named strlog instead of log. The special device file is /dev/strlog. strlog provides the same functionality for logging as described in the UNIX SVR4.2 System Files and Devices Reference, with the exceptions described below:

  • The strlog kernel utility formats binary arguments before sending messages up the stream.

  • STREAMS/UX does not provide a separate console logger or /dev/console device. strlog does not support the I_CONSLOG ioctl. strlog prints a log message on the console if the SL_CONSOLE flag is set.

  • The HP-UX log_ctl structure does not contain a pri field. Priority and facility codes are not supported.

sad

Major Number:

74

Module ID Number:

45

Maximum Packet Size:

INFPSZ

Minimum Packet Size:

0

High Water Mark:

2048

Low Water Mark:

128

The HP-UX sad driver device file is /dev/sad. The system administrator and users can open /dev/sad. However, only the system administrator can execute the SAD_SAP ioctl system call. This differs from the System V sad driver, which is accessed through the /dev/sad/admin and /dev/sad/user device files.

sad provides autopush functionality as described in the UNIX SVR4.2 System Files and Devices Reference manual.

echo

Major Number:

116

Module ID Number:

5000

Maximum Packet Size:

INFPSZ

Minimum Packet Size:

0

High Water Mark:

2048

Low Water Mark:

128

echo is a loopback driver used by the strvf STREAMS/UX verification tool. For more information about strvf, see Chapter 1.

sc

Module ID Number:

5002

Maximum Packet Size:

INFPSZ

Minimum Packet Size:

0

High Water Mark:

2048

Low Water Mark:

128

sc provides auxiliary functions for the sad driver.

timod

Module ID Number:

5006

Maximum Packet Size:

INFPSZ

Minimum Packet Size:

0

High Water Mark:

2048

Low Water Mark:

128

timod provides TLI functionality as described in the UNIX SVR4.2 System Files and Devices Reference manual.

tirdwr

Module ID Number:

0

Maximum Packet Size:

INFPSZ

Minimum Packet Size:

0

High Water Mark:

16K

Low Water Mark:

128

tirdwr provides an alternative interface to the TLI library for accessing a transport protocol provider. tirdwr is described in the UNIX SVR4.2 System Files and Devices Reference manual.

Stream Head

Module ID Number:

0

Module Name:

sth

Maximum Packet Size:

INFPSZ

Minimum Packet Size:

0

High Water Mark:

10240

Low Water Mark:

1024

The Stream head provides the interface between HP-UX system calls and STREAMS/UX utilities in the kernel. The Stream head is the first queue pair of every Stream and is involved in flow control. Data being read from a stream will be taken off the stream head.

pipemod

Module ID Number:

5303

Maximum Packet Size:

8192

Minimum Packet Size:

0

High Water Mark:

8192

Low Water Mark:

8192

pipemod handles M_FLUSH messages in STREAMS/UX-based pipes. pipemod is described in the UNIX System V Release 4 Programmer's Guide: STREAMS manual.

© 1995 Hewlett-Packard Development Company, L.P.