diff options
author | Tilman Schmidt | 2010-03-01 10:45:47 +0100 |
---|---|---|
committer | Karel Zak | 2010-03-01 10:45:47 +0100 |
commit | b091b880f963b5181ac09a202bff4e41a38dfbe0 (patch) | |
tree | 1416642206f667c004eb2be4893a460b2c846ca7 /sys-utils/ldattach.8 | |
parent | ldattach: create a generic functions for name=value tables (diff) | |
download | kernel-qcow2-util-linux-b091b880f963b5181ac09a202bff4e41a38dfbe0.tar.gz kernel-qcow2-util-linux-b091b880f963b5181ac09a202bff4e41a38dfbe0.tar.xz kernel-qcow2-util-linux-b091b880f963b5181ac09a202bff4e41a38dfbe0.zip |
ldattach: add --iflag command line option
Add a command line option '-i' / '--iflag' for setting or clearing
input flags on the serial device before attaching the line discipline.
[kzak@redhat.com: - use generic functions for work with iflags table
- add list of iflags to usage/help output
- move iflags parsing to separate function]
Impact: added functionality
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/ldattach.8')
-rw-r--r-- | sys-utils/ldattach.8 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys-utils/ldattach.8 b/sys-utils/ldattach.8 index 3856999f0..f78ab34cb 100644 --- a/sys-utils/ldattach.8 +++ b/sys-utils/ldattach.8 @@ -1,6 +1,6 @@ .\" Copyright 2008 Tilman Schmidt (tilman@imap.cc) .\" May be distributed under the GNU General Public License version 2 or later -.TH LDATTACH 8 "14 January 2008" "Linux 2.6" "Linux Programmer's Manual" +.TH LDATTACH 8 "14 February 2010" "Linux 2.6" "Linux Programmer's Manual" .SH NAME ldattach \- attach a line discipline to a serial line .SH SYNOPSIS @@ -8,6 +8,8 @@ ldattach \- attach a line discipline to a serial line .RB [ \-dhV78neo12 ] .RB [ \-s .IR speed ] +.RB [ \-i +.IR iflag ] .I ldisc device .SH DESCRIPTION The @@ -122,6 +124,13 @@ Sets the number of stop bits of the serial line to one. .TP \fB-2\fP | \fB--twostopbits\fP Sets the number of stop bits of the serial line to two. +.TP +\fB-i\fP \fIvalue\fP | \fB--iflag\fP [\fB-\fP]\fIvalue\fP{,...} +Sets the specified bits in the c_iflag word of the serial line. +\fIValue\fP may be a number or a symbolic name. +If \fIvalue\fP is prefixed by a minus sign, clear the specified bits instead. +Several comma separated \fIvalue\fPs may be given in order to +set and clear multiple bits. .SH "SEE ALSO" .BR inputattach (1), .BR ttys (4) |