lkml.org 
[lkml]   [2004]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Problem with ioctl command TCGETS
Date
You wrote:
[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? ;-)

Regards

Ingo Oeser

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

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.061 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site