System Administration Guide: Advanced Administration

ttymon Port Monitor

Whenever you attempt to log in by using a directly connected modem or alphanumeric terminal, ttymon goes to work.

As shown in the following figure, the init process is the first process to be started at boot time. Consulting its administrative file (/etc/inittab), the init process starts other processes as they are needed. Listed among those processes is the SAC.

SAC, in turn, automatically starts the port monitors designated in its administrative file, /etc/saf/_sactab. The following figure shows only a single ttymon port monitor.

After the ttymon port monitor has been started, it monitors the serial port lines for service requests.

Figure 12–1 How ttymon Helps Process a Login Request

The preceding text describes the graphic.

When someone attempts to log in by using an alphanumeric terminal or a modem, the serial port driver passes the activity to the operating system. The ttymon port monitor notes the serial port activity, and attempts to establish a communications link. The ttymon port monitor determines what data transfer rate, line discipline, and handshaking protocol are required to communicate with the device.

After the proper parameters for communication with the modem or terminal are established, the ttymon port monitor passes these parameters to the login program and transfers control to it.