lkml.org 
[lkml]   [2011]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: serial port programming second question (newbie)
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


\
 
 \ /
  Last update: 2011-01-18 12:01    [W:0.432 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site