Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ autopush(1M) — SunOS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

streamio(7)

autopush(1M)

NAME

autopush − configures lists of automatically pushed STREAMS modules

SYNOPSIS

autopush −f file
autopush −g
−M major −m minor
autopush −r −M major −m minor

AVAILABILITY

SUNWcsr

DESCRIPTION

This command is used to configure the list of modules to be automatically pushed onto the stream when a device is opened.  It can also be used to remove a previous setting or get information on a setting. 

OPTIONS

−ffile Set up the autopush configuration for each driver according to the information stored in file.  An autopush file consists of lines of four or more fields, separated by spaces as shown below:

major  minor  last_minor  mod1 mod2 ... modn

The first field is a string that specifies the major device name, as listed in the /kernel/drv directory.  The next two fields are integers that specify the minor device number and last minor device number.  The fields following represent the names of modules.  If minor is −1, then all minor devices of a major driver specified by major are configured, and the value for last_minor is ignored.  If last_minor is 0, then only a single minor device is configured.  To configure a range of minor devices for a particular major, minor must be less than last_minor. 

The last fields of a line in the autopush file represent the list of module names.  The maximum number of modules that can be automatically pushed on a stream is eight.  The modules are pushed in the order they are specified.  Comment lines start with a # sign. 

−g Get the current configuration setting of a particular major and minor device number specified with the −M and −m options respectively and displays the autopush modules associated with it.  It will also return the starting minor device number if the request corresponds to a setting of a range (as described with the −f option).  For example, the output format for /dev/ttya would be

Major      Minor  Lastminor        Modules
   12                0             1           ldterm ttcompat

−r Remove the previous configuration setting of the particular major and minor device number specified with the −M and −m options respectively.  If the values of major and minor correspond to a previously established setting of a range of minor devices, where minor matches the first minor device number in the range, the configuration would be removed for the entire range. 

−Mmajor
Specifies the major device number.

−mminor
Specifies the minor device number.

FILES

/etc/iu.ap

SEE ALSO

streamio(7)

SunOS 5.1 STREAMS Programmer’s Guide

SunOS 5.1  —  Last change: 14 Sep 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026