These programming examples are tailored to Solaris SPARC and Intel
platforms. They are published under the
DLPI test program (not a driver)
Example of how to handle streams pseudo-ttys (not a driver).
Char device driver with two instances which function together as a pipe. Demonstrates the use of conditions.
Streams loopback driver. The data is returned with comments.
Streams lower multiplexor. Demonstrates the use of ioctl(I_LINK) and ioctl(I_PLINK).
Simple streams spy. It is pushed onto a stream where it then logs all the data in the stream.
More sophisticated streams spy implemented as a multiplexor. It is permanently linked to the streams device to be monitored. The log data is read out via a control device.
There is also a program for tracing DLPI devices. It can be used, for example, to monitor the effect of ifconfig on the network card.