[ibm-acpi-devel] [ltp] Re: thinkpad-acpi release 0.17-20071002
uploaded to ibm-acpi.sf.net
Henrique de Moraes Holschuh
linux-thinkpad@linux-thinkpad.org
Thu, 4 Oct 2007 19:52:12 -0300
On Thu, 04 Oct 2007, Chris Hanson wrote:
> What doesn't appear here is code to discard the input buffer when EINVAL
> is returned. I don't understand where that is supposed to happen, since
> it would normally be handled by returning the number of characters read
If you return any valid error (like -EINVAL), the entire buffer is
discarded, and the write operation syscal fails with that error status.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh