Re: [PATCH] rtc subsystem, use ENOIOCTLCMD where appropriate

From: Alessandro Zummo
Date: Wed May 17 2006 - 17:28:50 EST


On Wed, 17 May 2006 14:25:10 -0700
"Randy.Dunlap" <rdunlap@xxxxxxxxxxxx> wrote:

> On Wed, 17 May 2006 01:30:33 +0200 Alessandro Zummo wrote:
>
> >
> >
> > Appropriately use -ENOIOCTLCMD when
> > the ioctl is not implemented by a driver.
>
> so this return value does not go back to userspace?
> Comment in linux/errno.h says:
> /* Should never be seen by user programs */
>
> and ENOTTY is the return value for "Inappropriate ioctl for device":
>

you're right. I'll go for ENOTTY. thanks.


--

Best regards,

Alessandro Zummo,
Tower Technologies - Turin, Italy

http://www.towertech.it

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/