Re: es1371 midi_read patch

tytso@mit.edu
Thu, 9 Sep 1999 14:35:43 +0200


Date: Fri, 03 Sep 1999 11:34:48 +0200
From: Thomas Sailer <sailer@ife.ee.ethz.ch>

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.

I did it that way for the random driver because (a) it's useful, and (b)
normally you never block on writes to the random driver, so having
select and poll signal that the file descriptor becoming writable when
it needs entropy was useful for user-space random daemons, and didn't
take anything away. It was definitely non-standard semantics for
poll/select, though, and I wouldn't use this as an argument that any
other device driver should necessarily do this. /dev/random is
definitely a special case.

- Ted

-
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/