]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/ldattach.8
build-sys: fix out-of-tree build for hwclock
[thirdparty/util-linux.git] / sys-utils / ldattach.8
CommitLineData
1e8d11c4
TS
1.\" Copyright 2008 Tilman Schmidt (tilman@imap.cc)
2.\" May be distributed under the GNU General Public License version 2 or later
c372860d 3.TH LDATTACH 8 "July 2014" "util-linux" "System Administration"
1e8d11c4
TS
4.SH NAME
5ldattach \- attach a line discipline to a serial line
6.SH SYNOPSIS
0b1b2499 7.B ldattach
c372860d 8.RB [ \-1278denoVh ]
b091b880
TS
9.RB [ \-i
10.IR iflag ]
c372860d
BS
11.RB [ \-s
12.IR speed ]
0b1b2499 13.I ldisc device
1e8d11c4
TS
14.SH DESCRIPTION
15The
16.B ldattach
17daemon opens the specified
18.I device
19file
20(which should refer to a serial device)
21and attaches the line discipline
0b1b2499 22.I ldisc
1e8d11c4
TS
23to it for processing of the sent and/or received data.
24It then goes into the background keeping the device open so that the
25line discipline stays loaded.
c372860d 26.sp
1e8d11c4 27The line discipline
0b1b2499 28.I ldisc
1e8d11c4
TS
29may be specified either by name
30or by number.
c372860d 31.sp
1e8d11c4
TS
32In order to detach the line discipline,
33.BR kill (1)
34the
35.B ldattach
36process.
c372860d 37.sp
1e8d11c4
TS
38With no arguments,
39.B ldattach
40prints usage information.
41.SH LINE DISCIPLINES
d5f36dec 42Depending on the kernel release, the following line disciplines are supported:
1e8d11c4
TS
43.TP
44.BR TTY ( 0 )
45The default line discipline,
46providing transparent operation (raw mode)
47as well as the habitual terminal line editing capabilities (cooked mode).
48.TP
49.BR SLIP ( 1 )
50Serial Line IP (SLIP) protocol processor
51for transmitting TCP/IP packets over serial lines.
52.TP
53.BR MOUSE ( 2 )
54Device driver for RS232 connected pointing devices (serial mice).
55.TP
56.BR PPP ( 3 )
57Point to Point Protocol (PPP) processor
58for transmitting network packets over serial lines.
59.TP
60.BR STRIP ( 4 )
61.TP
62.BR AX25 ( 5 )
63.TP
64.BR X25 ( 6 )
65Line driver for transmitting X.25 packets over asynchronous serial lines.
66.TP
67.BR 6PACK ( 7 )
68.TP
69.BR R3964 ( 9 )
70Driver for Simatic R3964 module.
71.TP
72.BR IRDA ( 11 )
73Linux IrDa (infrared data transmission) driver -
74see http://irda.sourceforge.net/
75.TP
76.BR HDLC ( 13 )
77Synchronous HDLC driver.
78.TP
79.BR SYNC_PPP ( 14 )
80Synchronous PPP driver.
81.TP
82.BR HCI ( 15 )
83Bluetooth HCI UART driver.
84.TP
85.BR GIGASET_M101 ( 16 )
86Driver for Siemens Gigaset M101 serial DECT adapter.
d5f36dec
TS
87.TP
88.BR PPS ( 18 )
89Driver for serial line Pulse Per Second (PPS) source.
8596f639
KZ
90.TP
91.BR GSM0710 ( 21 )
92Driver for GSM 07.10 multiplexing protocol modem (CMUX).
1e8d11c4
TS
93.SH OPTIONS
94.TP
c372860d
BS
95.BR \-1 , " \-\-onestopbit"
96Set the number of stop bits of the serial line to one.
1e8d11c4 97.TP
c372860d
BS
98.BR \-2 , " \-\-twostopbits"
99Set the number of stop bits of the serial line to two.
1e8d11c4 100.TP
c372860d
BS
101.BR \-7 , " \-\-sevenbits"
102Set the character size of the serial line to 7 bits.
1e8d11c4 103.TP
c372860d
BS
104.BR \-8 , " \-\-eightbits"
105Set the character size of the serial line to 8 bits.
1e8d11c4 106.TP
c372860d
BS
107.BR \-d , " \-\-debug"
108Keep
109.B ldattach
110in the foreground so that it can be interrupted or debugged,
111and to print verbose messages about its progress to standard error output.
1e8d11c4 112.TP
c372860d
BS
113.BR \-e , " \-\-evenparity"
114Set the parity of the serial line to even.
1e8d11c4 115.TP
c372860d
BS
116.BR -i , " --iflag " [ \- ] \fIvalue\fR...
117Set the specified bits in the c_iflag word of the serial line.
118The given \fIvalue\fP may be a number or a symbolic name.
119If \fIvalue\fP is prefixed by a minus sign, the specified bits are cleared
120instead. Several comma-separated values may be given in order to
121set and clear multiple bits.
1e8d11c4 122.TP
c372860d
BS
123.BR \-n , " \-\-noparity"
124Set the parity of the serial line to none.
1e8d11c4 125.TP
c372860d
BS
126.BR \-o , " \-\-oddparity"
127Set the parity of the serial line to odd.
1e8d11c4 128.TP
c372860d
BS
129.BR \-s , " \-\-speed " \fIvalue
130Set the speed (the baud rate) of the serial line to the specified \fIvalue\fR.
1e8d11c4 131.TP
b06c1ca6 132.BR \-c , " \-\-intro\-command " \fIstring
8596f639
KZ
133Define an intro command that is sent through the serial line before the invocation
134of ldattach. E.g. in conjunction with line discipline GSM0710, the command
135\'AT+CMUX=0\\r\' is commonly suitable to switch the modem into the CMUX mode.
136.TP
137.BR \-p , " \-\-pause " \fIvalue
138Sleep for \fIvalue\fR seconds before the invocation of ldattach. Default is one second.
139.TP
c372860d
BS
140.BR \-V , " \-\-version"
141Display version information and exit.
b091b880 142.TP
c372860d
BS
143.BR \-h , " \-\-help"
144Display help text and exit.
1e8d11c4
TS
145.SH "SEE ALSO"
146.BR inputattach (1),
147.BR ttys (4)
148.SH AUTHOR
149.nf
150Tilman Schmidt (tilman@imap.cc)
151.fi
152.SH AVAILABILITY
601d12fb 153The ldattach command is part of the util-linux package
1e8d11c4 154and is available from
d673b74e 155https://www.kernel.org/pub/linux/utils/util-linux/.