lkml.org 
[lkml]   [2010]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectExtended error reporting to user space?
Date
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


\
 
 \ /
  Last update: 2010-02-16 13:23    [W:0.064 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site