public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Extended error reporting to user space?
@ 2010-02-16 12:20 Nikita V. Youshchenko
  2010-02-16 12:23 ` Alexey Dobriyan
  2010-02-17  9:58 ` Andi Kleen
  0 siblings, 2 replies; 11+ messages in thread
From: Nikita V. Youshchenko @ 2010-02-16 12:20 UTC (permalink / raw)
  To: LKML

Hi

I'm developing a device driver that, in it's ioctl()s, accepts a complex 
data structure. Before doing it's operation, it performs large number of 
checks if data is valid. If one of those checks fail, driver 
returns -EINVAL.

Unfortunately this -EINVAL is not really useful. E.g. if a developer, 
sitting in his IDE and debugging his code, will see ioctl() 
returning -EINVAL, and will have hard times finding what exactly is wrong.

Before inventing driver-specific extended error reporting, I'd like to ask 
if there is anything more or less generic for this.
I believe situation when -Exxx is too weak interface for error reporting is 
common.

Nikita

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-02-21  0:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 12:20 Extended error reporting to user space? Nikita V. Youshchenko
2010-02-16 12:23 ` Alexey Dobriyan
2010-02-16 13:17   ` Américo Wang
2010-02-17  9:58 ` Andi Kleen
2010-02-17 10:16   ` Nikita V. Youshchenko
2010-02-17 10:35     ` Andi Kleen
2010-02-17 19:20       ` Dr. David Alan Gilbert
2010-02-17 20:23         ` Andi Kleen
2010-02-21  0:02           ` Dr. David Alan Gilbert
2010-02-17 10:43     ` Alan Cox
2010-02-17 11:57       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox