| LDATTACH(8) | System Manager's Manual | LDATTACH(8) |
ldattach — attach
a line discipline to a serial line
ldattach |
[-27dehmop] [-s
baudrate] [-t
cond] discipline
device |
ldattach is used to attach a line
discipline to a serial line to allow for in-kernel processing of the
received and/or sent data. Depending on the line discipline being attached,
one or more options may be applied.
ldattach can be run from the command line
or at system startup by having
init(8) read
ttys(5) entries to attach line
disciplines.
The following options are available:
-2-7-d-e-h-m-o-p-s
baudrate-t
condIf no condition is specified, the nmea(4) line discipline will timestamp on receiving the leading ‘$’ character of each block of NMEA sentences.
cua(4) devices should
be used when ldattach is started from the
command line; when started using
init(8),
tty(4) devices should be
used.
If ldattach was not started by
init(8), the line discipline can be
detached by killing off the ldattach process.
To start ldattach using
init(8) to attach the
nmea(4) line discipline to
/dev/tty01 at 4800 baud using a device without a
carrier (DCD) line, add a line of the following form to
/etc/ttys:
tty01 "/sbin/ldattach nmea" unknown on softcar
endrun(4), msts(4), nmea(4), pty(4), tty(4), ttys(5), init(8)
The ldattach command first appeared in
OpenBSD 4.3.
| October 2, 2014 | openbsd |