Messages in this thread | | | Subject | Re: es1371 midi_read patch | Date | Thu, 2 Sep 1999 22:06:15 +0100 (BST) | From | Alan Cox <> |
| |
> According to "the standard", the midi read() call is supposed to work like > a socket read. And I quote from > http://www.4front-tech.com/pguide/midi.html: > > Reading from the device waits until there are at least one byte in > the receive buffer. When the first byte is received, the driver > will not wait for additional characters. This means that the read > returns usually less bytes than requested. > > Whether or not you accept 4front-tech.com's pages as the standard, that's > what applications will expect to see.
Your patch certainly looks correct. The difference for O_NDELAY is 'does it wait if nothing is ready'
- 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/
| |