Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ portstatus(5) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pstart

init

portstatus

Purpose

     Centralizes commands to control ports.

Description

     The pstart, penable, pshare,  pdelay, pdisable, and phold
     commands communicate  with the init command  (the process
     that controls loggers)  through the /etc/portstatus file.
     See  the pstart  and pdisable  commands in  AIX Operating
     System Commands  Reference for more information  on these
     commands.  The format of this file is:

          struct portstatus
             {  char ps_line[14];       /* device name */
                     char ps_stat;      /* current status */
                     char ps_rqst;      /* requested status */
          };

          #define ENABLE   01       /* spawn logger */
          #define DISABLE  02       /* kill logger */
          #define HOLD     04       /* spawn no new logger */
          #define SHARE    010
          #define DELAY    020

     The fields are explained as follows:

     ps_line   Names the special file for the port, tty01, for
               example.

     ps_rqst   Used by the pstart, penable, pshare, and pdelay
               commands to request changes  in the enabling of
               a port.

     ps_stat   Used by  the init  command to show  the current
               state of the port.

     The pstart,  penable, pshare,  and pdelay  commands, with
     the  -i flag  specified,  automatically initializes  this
     file.  If  this file  does not exist  or is  damaged, the
     init command cannot enable the ports properly.

File

     /etc/portstatus

Related Information

     The pstart and init commands in AIX Operating System Com-
     mands Reference.

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