public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ioctl's suck?
@ 2008-08-02 21:54 Brian Beattie
  2008-08-03  1:18 ` Mikael Pettersson
  2008-08-03 12:56 ` Alan Cox
  0 siblings, 2 replies; 5+ messages in thread
From: Brian Beattie @ 2008-08-02 21:54 UTC (permalink / raw)
  To: linux-kernel

The other day Linus (I think) made the statement, that I don't disagree
with, that I will parapharse as "ioctl's suck".  If I recall correctly
and understand he was saying that a device that uses ioctls is broken.
(this is my paraphrase and if it offends anybody it is my fault not the
original author's).

This got me to thinking about a device driver that I'm working on.
Currently I have some ioctls to handle status and out of band messages
and I'm wondering about eliminating the ioctls.  I'm wondering if
anybody has any ideas or opinions that they would like to share, about
just what i wrong with ioctls and/or how to avoid them.

I can see a number of problems with ioctls that I can'tr quite put into
words.

I could add a control device and pass ascii strings for status and OOB
messages, would that be an improvement?
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting a bad thing?

Brian Beattie   LFS12947 | "Honor isn't about making the right choices.
beattie@beattie-home.net | It's about dealing with the consequences."
www.beattie-home.net     | -- Midori Koto



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-03 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.pDV0CxkUWw00OFrnybFqbUSeaQA@ifi.uio.no>
2008-08-03  1:36 ` ioctl's suck? Robert Hancock
2008-08-02 21:54 Brian Beattie
2008-08-03  1:18 ` Mikael Pettersson
2008-08-03 12:56 ` Alan Cox
2008-08-03 17:04   ` Brian Beattie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox