lkml.org 
[lkml]   [1999]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Serial proxy driver help...
From
Date
>>>>> "RJ" == Richard B Johnson <root@chaos.analogic.com> writes:

RJ> This is a template.

RJ> for(;;)
RJ> {
RJ> select(i+1....) /* Timeout on select about 2 character times */
RJ> {
RJ> len = read(i, buf, LEN);
RJ> if(len)write(j, buf, len);
RJ> }
RJ> select(j+1....)
RJ> {
RJ> len = read(j, buf, LEN);
RJ> if(len) write(i, buf, len);
RJ> }
RJ> }

Would you care to explain how you would handle breaks and sttys
(i.e. serial configuration change such as parity, speed, etc.)
in the above scheme please?


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

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