STREAMS-UX Programmer's Guide (February 2007)

STREAMS Commands
autopush
Appendix G
289
If a range of minors has been previously configured then autopush -g returns the
configuration information for the first minor in the range, in addition to other information.
-r -M major -m minor Remove configuration information from the system database for the STREAMS
device specified by the major device number (or device name for the device from the
modmeta file and minor number). Removal is performed on the database only, not on the
original configuration file. Therefore, the original configuration can be restored by using the
-f file option. To permanently exclude a STREAMS device from the database, its
information must be removed from the configuration file.
If minor matches the first minor of a previously configured range then autopush -r
removes the configuration information for the entire configured range.
Examples
The file /tmp/autopush.example contains the following:
75 -1 0 modA
modB test 0 5 modC modA
autopush -f /tmp/autopush.example will cause modA and modB to be pushed whenever major device # 75 is
opened, and modC and modA to be pushed for the first six opens of test.
The following example lists information about the stream for major device 75 and its minor device 2:
autopush -g -M 75 -m 2