On Tue, Jul 29, 2008 at 12:22:52AM +0200, Jiri Slaby wrote:
Actually positive ioctl retval used to be often considered as OK in the past (and this approach is still used in few char drivers).
But according to v4l docco, it isn't permitted here. Anyway I wouldn't place it in videobuf-core.c, but in vivi code; letting this decision on Mauro (CCed) ;).
What happens to negative retvals like -EINVAL? Get they somewhere truncated to -1 and errno set?
Just curious, Gregor