Revision d261154057c27f6c1d256b6198b0ad08733f1758 authored by Ian Abbott on 19 May 2010, 16:22:41 UTC, committed by Greg Kroah-Hartman on 04 June 2010, 20:38:53 UTC
For write(), any data copied to the data buffer after the previously set up streaming acquisition command has finished won't be used, but a non-empty write() does not currently return 0 (or -EPIPE on error) after the command has finished until the data buffer has been filled up. Change this behavior to return 0 (or -EPIPE) any time after the command has finished, without bothering to fill up the buffer with more useless data. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent ee4063f
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 8.8 KB |
Makefile | -rw-r--r-- | 421 bytes |
block_io.c | -rw-r--r-- | 2.4 KB |
console.c | -rw-r--r-- | 700 bytes |
hibernate.c | -rw-r--r-- | 22.7 KB |
hibernate_nvs.c | -rw-r--r-- | 3.1 KB |
main.c | -rw-r--r-- | 5.6 KB |
power.h | -rw-r--r-- | 6.7 KB |
poweroff.c | -rw-r--r-- | 1004 bytes |
process.c | -rw-r--r-- | 3.4 KB |
snapshot.c | -rw-r--r-- | 58.0 KB |
suspend.c | -rw-r--r-- | 6.6 KB |
suspend_test.c | -rw-r--r-- | 5.0 KB |
swap.c | -rw-r--r-- | 15.5 KB |
user.c | -rw-r--r-- | 10.3 KB |
Computing file changes ...