mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: donna.rigas@dynonavionics.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: serial port programming second question (newbie)
Date: Tue, 18 Jan 2011 10:57:37 +0000	[thread overview]
Message-ID: <20110118105737.3ff91a39@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <4D34E1C2.1000602@gmail.com>

On Mon, 17 Jan 2011 16:41:38 -0800
Donna Rigas <donna.rigas@gmail.com> wrote:

> Also, if your call to tcsetattr fails, or if  the ioctl call to
> set the baud rate fails, does it matter if you restore the serial
> port settings or not?

If they fail the returned struct contains the settings you ended up with,
eg the baud rate you actually got. Older kernels didn't get that detail
right but current ones do. Generally they will try and pick a nearest
suitable rate.

Alan

      reply	other threads:[~2011-01-18 10:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18  0:27 serial port programming " Donna Rigas
2011-01-18  0:41 ` serial port programming second " Donna Rigas
2011-01-18 10:57   ` Alan Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110118105737.3ff91a39@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=donna.rigas@dynonavionics.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®