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 specified by the File parameter consists of lines consisting of at least four fields per line. Each field is separated by a character space as shown in the following example:
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 subsequent fields represent the names of modules. If the value of the min_ field is -1, then all minor devices of a major driver specified by the maj_ field are configured and the value of the last_min_ field is ignored. If the value of the last_min_ field is 0, then only a single minor device is configured. To configure a range of minor devices for a particular major, the value of the min_ field must be less than the value of the last_min_ field.

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 # (pound 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

  1. To configure a list of automatically pushed Streams modules, type:
    autopush -f File
  2. To remove the previous configuration, type:
    autopush -r -M Major -m Minor
  3. To show the current configuration, type:
    autopush -g -M Major -m Minor