autopush Command
Purpose
Configures lists of automatically pushed STREAMS modules.
Syntax
autopush -f File
autopush -r -M Major -m Minor
autopush -g -M Major -m Minor
Description
The autopush command configures the list of modules to be automatically pushed onto the stream when a device is opened. It can also remove a previous setting or obtain information on a setting.
Flags
Item | Description |
---|---|
-f File | Sets up the autopush configuration for each driver according to the
information stored in the specified file. The file that is specified by the
File parameter consists of lines consists of at least four fields per line. Each
field is separated by a character space as shown in the following example:
The first three fields are integers that specify the major device number, minor
device number, and last minor device number. The subsequent fields represent the names of modules.
If the value of the The last fields of a line in the autopush file represent the list of module names. Each module name is separated by a character space. The maximum number of modules that can be automatically pushed on a stream is eight, and they are pushed onto the stream in the order they are listed. Comment lines start with a # (hash sign). |
-r | Removes the previous configuration setting of a particular major and minor device number. |
-g | Obtains the current configuration setting of a particular major and minor device number. It also returns the starting minor device number if the request corresponds to a setting of a range. |
-M Major | Specifies a major device number. |
-m Minor | Specifies a minor device number. |
This operating system provides an enhancement to the autopush command that makes it easier to specify major numbers. The name of a driver can be specified instead of its major number anywhere the major number is normally used.
Parameters
Item | Description |
---|---|
File | Contains at least the major device number, minor device number, last minor device number and modules. |
Major | Specifies a major device number. |
Minor | Specifies a minor device number. |
Examples
- To configure a list of automatically pushed Streams modules, type:
autopush -f File
- To remove the previous configuration, type:
autopush -r -M Major -m Minor
- To show the current configuration, type:
autopush -g -M Major -m Minor