Re: Problem with ioctl command TCGETS
From: Ingo Oeser
Date: Thu Dec 09 2004 - 23:01:54 EST
[read/write vs ioctl]
> > Tell me how? E.g. how would you set/get sound stream parameters if
> > not with ioctl()?
> Have several related files.
Look at your monitor. Technically this is an output device.
But there are little controls, where you can make adjustments.
ioctl is nothing else: A controller for an io-stream.
It also makes quite clear, that we are packetizing read/writes now.
And it cannot be fdopen()ed ;-)
Maybe we COULD split strictly for reads and writes, but
we still need a side channel for that to be opened by
passing a file descriptor.
How else would you control a tty/pty which you got as stdin/stdout?
Maybe one could hack this into xattr-support? ;-)
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/