autopush(1M) autopush(1M)
autopush - configure lists of automatically pushed STREAMS modules
autopush -f file
autopush -r -M major -m minor
autopush -g -M major -m minor
autopush allows you 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 file 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 configured and the value for last_min is
ignored. If last_min is 0, then only a single minor device is
configured. 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 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 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 Get the current configuration setting of a particular major and
minor device number specified with the -M and -m options,
respectively. It also returns the starting minor device number
if the request corresponds to a setting of a range (as
described with the -f option).
Page 1
autopush(1M) autopush(1M)
streamio(7).
PPPPaaaaggggeeee 2222 [ Back ]
|