Charles.Forsyth20060303-partialeea662d19 years agoHistory
136 lines · 2.2 KB · Text
RawDownload
.TH EIA 3 .SH NAMEeia \- serial communication control.SH SYNOPSIS.nf.B bind -a '#t' /dev .B /dev/eia0.B /dev/eia0ctl.B /dev/eia0status.B /dev/eia1.B /dev/eia1ctl.B /dev/eia1status\&....fi.SH DESCRIPTION.PPThe serial line device serves a one-level directory that gives access to the serial ports.Each file set.BI eia "n ..."represents one serial portand includes a data file(eg,.BR eia0 ),a control file(eg,.BR eia0ctl ),and a status file(eg,.BR eia0status )..PPThe.B datafile can be read and written to access the corresponding serial port.Reads will block until at least one character is available..PPThe.B ctlfile accepts textual commands, via.I write(see.IR sys-read (2)),that control or conditionthe serial port for subsequent IO:.TP.BI b nSet the baud rate to.IR n ..TP.BI c nIf.I nis non-zero, cause a hangup if the remote drops DCD..TP.BI d nSet DTR if.I nis non-zero;otherwise clear it..TP.BI e nIf.I nis non-zero,cause a hangup if the remote drops DSR..TP.B f Flush the output queue..TP.B hHangup both input and output queues..TP.BI k nSend a break lasting.I nmilliseconds..TP.BI l nSet number of bits per byte to.IR n .Legal values are 5, 6, 7, or 8..TP.BI m nObey modem CTS signal if.I nis non-zero; otherwise clear it..TP.BI n nSet the output queue to non-blocking, if.I nis non-zero; otherwise mark it as blocking (the default).In non-blocking mode, if the output queue is full, new output is discardedrather than block the writer until the queue drains..TP.BI p cSet parity to odd if.I cis.BR o ,to even if.I cis.BR e ;otherwise set no parity..TP.BI q nSet the limit on input and output queues to.IR n ;both queues are initially set to 4k bytes..TP.BI r nSet RTS if.I nis non-zero; otherwise clear it..TP.BI s nSet number of stop bits to.IR n .Legal values are 1 or 2..TP.BI x nEnable XON/XOFF flow control if.I nis non-zero; otherwise disable it (the default)..PPChanges to port settings persist between a subsequent close and reopen..PPThe.B statusfile can be read for a report of the serial port status..SH SOURCE.B /os/port/devns16552.c.br.B /os/*/devuart.c.br.B /os/*/devscc.c