lkml.org 
[lkml]   [2002]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: changes between 2.2.20 and 2.4.x 'broke' select() from detecting input characters in my serial /dev/ttyS0 program
On Wed, 1 May 2002 at 11:03 -0400, Stuart MacDonald <stuartm@connecttech.co...:

> CREAD handling was changed to be correct; recently, but I don't know
> exactly when. The 2.4 vs 2.2 difference sounds about right though.
> Previously CREAD had been incorrectly handled by the driver and hadn't
> been changed because some apps would break. Now data is correctly
> ignored on receive when CREAD is off.
>
> When you talk about the "O_WRONLY channel" and the "O_RDONLY channel"
> you're not actually referring to separate things. Each serial port is
> represented in the kernel as one entity that may be opened different
> ways, possibly multiple times.
>
> When you turn off CREAD in your write side, you turn off CREAD for the
> whole port, including the read only side. This is not a bug in the
> driver.

Thanks for your response. (thanks also the the other
folks that responded). It makes sense to me that 2 open calls
to the same "/dev/ttyS0" should map to the same driver and kernel
structure, so there is only one place that CREAD effects.

To bad that the 2.2 code was in error, but I can work around with that.

David

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.039 / U:1.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site