LWN.net Logo

-ENOTTY ?

-ENOTTY ?

Posted Jan 15, 2004 22:54 UTC (Thu) by xav (subscriber, #18536)
Parent article: A simple block driver

I don't understand the -ENOTTY in the sbd_ioctl(). Why not simply a -EINVAL ?


(Log in to post comments)

-ENOTTY ?

Posted Aug 25, 2008 13:07 UTC (Mon) by strcmp (subscriber, #46006) [Link]

because it's the documented behaviour we have to implement here. the man page ioctl(2) says:
ENOTTY The specified request does not apply to the kind of object  that
       the descriptor d references.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds