> From: Oliver Neukum <[EMAIL PROTECTED]>
> Date: Wed, 18 Dec 2002 01:20:56 +0100

> unknown ioctls return -ENOTTY and nothing else.
> -             return -ENOIOCTLCMD;
> +             return -ENOTTY;

Does it pop to userland in that code? Alan says it can be used
under controlled conditions.

> Alan Cox <[EMAIL PROTECTED]>
> Date: Sat, 12 May 2001 12:16:09 +0100 (BST)
> 
> It should never be seen by apps. If it can be then it is wrong code.
> Basically you use it in things like
> 
> int err = dev->ioctlfunc(dev, op, arg);
> if( err != -ENOIOCTLCMD)
>     return err;
> /* Driver specific code does not support this ioctl */
> switch(op)
> {
>    ...
>     default:
>     return -ENOTTY;
> }
> 
> Its a way of passing back 'you handle it' 

-- Pete


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to