User: Password:
Subscribe / Log in / New account

ioctl replacement

ioctl replacement

Posted Oct 10, 2009 17:33 UTC (Sat) by jeremiah (subscriber, #1221)
Parent article: Infrastructure unification in the block layer

It's been 10 years since I wrote anything that used ioctl(). So please excuse the dumb question, but
what is the preferred replacement for it? From what I've gathered reading the article, it seems that
sysfs is the way to go. As long as the driver supports it. Is this a correct assumption?

(Log in to post comments)

ioctl replacement

Posted Oct 11, 2009 9:57 UTC (Sun) by neilbrown (subscriber, #359) [Link]

(there are no dumb questions, only dumb answers :-)

I'm not sure there there is any official statement that any one or any group has made that could be deemed authoritative. However I personally think sysfs, and device-model attributes are the best way to communicate with a device driver. I don't really think there is a credible alternative.

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