Re: proposal to add small helper for error conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 13, 2010 at 06:09:19PM +0200, Oliver Neukum wrote:
> Hi,
> 
> drivers need to return errors to user space.
> A common source for them are urb->status and the
> return value of usb_submit_urb(). They cannot be returned as
> is to user space, as for example -EPIPE has a very
> different meaning in user space. I'd like to add this small
> helper for conversion.
> What do you think?

Makes sense, it should be able to get rid of a lot of driver code, or at
least, make them all more consistent.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux