Skip to contentSkip to conversation

suitable IOCTL error code when device is in state IOCTL cannot performed

DISCUSSION Antti Palosaari 2 participants 2 messages Aug 12, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Subject says it all. Which one error value is most suitable / generic ?

Here are few ones I found which could be possible:

#define EPERM        1  /* Operation not permitted */
#define EAGAIN      11  /* Try again */
#define EACCES      13  /* Permission denied */
#define EBUSY       16  /* Device or resource busy */
#define ENODATA     61  /* No data available */

#define ECANCELED 125 /* Operation Canceled */

regards
Antti

Signature · 1 line
http://palosaari.fi/
#1 lore raw

Em 12-08-2012 13:38, Antti Palosaari escreveu:

Quoted 10 lines

Subject says it all. Which one error value is most suitable / generic ?

Here are few ones I found which could be possible:

#define EPERM        1  /* Operation not permitted */
#define EAGAIN      11  /* Try again */
#define EACCES      13  /* Permission denied */
#define EBUSY       16  /* Device or resource busy */
#define ENODATA     61  /* No data available */

#define ECANCELED 125 /* Operation Canceled */

IMHO, EAGAIN, EBUSY or ENODATA are the most pertinent ones.

Regards,
Mauro