lkml.org 
[lkml]   [1999]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: es1371 midi_read patch
On Fri, Sep 03, 1999 at 11:34:48AM +0200, Thomas Sailer wrote:

> Wait a minute. We have both semantics in kernel drivers.
> Ted's random does it the way you suggest it, but it does
> look from the code that it hasn't been that way all the time.
>
> Parport/Printer stuff seems to do it the way I do it,
> and the tty stuff can be configured obviously (using the termios
> stuff).
>
> Is there any argument for or against one behaviour except
> OSS behaviour? Standards? I didn't find anything useful
> in the online unix98 spec.
>
> We can discuss about changing the semantics, the patch proposed
> however looks (as the author also states) like an (IMO rather ugly)
> hack, Ted did it much more cleanly in his random driver.

Joysticks and the upcoming input device suite follows the same
lines - if there is anything, read it, regardless how the buffer
is big, and if there isn't anything, block and wait for something
to arrive.

Vojtech

-
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:2.013 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site