autopush(1M) MISC. REFERENCE MANUAL PAGES autopush(1M)
NAME
autopush - configure lists of automatically pushed STREAMS
modules
SYNOPSIS
autopush -f file
autopush -r -M major -m minor
autopush -g -M major -m minor
DESCRIPTION
This command allows one 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. The following options apply
to autopush:
-f This option sets up the autopush configuration for each
driver according to the information stored in the
specified file. An autopush file consists of lines of
at least four fields each where the fields are
separated by a space as shown below:
maj_ min_ last_min_ mod1 mod2 ... modn
The first three fields are integers that specify the
major device number, minor device number, and last
minor device number. The fields following represent
the names of modules. If min_ is -1, then all minor
devices of a major driver specified by maj_ are config-
ured and the value for last_min_ is ignored. If
last_min_ is 0, then only a single minor device is con-
figured. To configure a range of minor devices for a
particular major, min_ must be less than last_min_.
The last fields of a line in the autopush file represent the
list of module names where each is separated by a space. The
maximum number of modules that can be automatically pushed
on a stream is defined to be eight. The modules are pushed
in the order they are specified. Comment lines start with a
# sign.
-r This option removes the previous configuration setting
of the particular major and minor device number speci-
fied with the -M and -m options respectively. If the
values of major and minor correspond to a 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.
-g This option gets the current configuration setting of a
particular major and minor device number specified with
the -M and -m options respectively. It will also return
the starting minor device number if the request
corresponds to a setting of a range (as described with
Last change: 1
autopush(1M) MISC. REFERENCE MANUAL PAGES autopush(1M)
the -f option).
SEE ALSO
streamio(7)
Programmer's Guide: STREAMS
Last change: 2