streams/ioctls

Wolfgang Solfrank ws at tools.uucp
Thu Jan 3 22:19:50 AEST 1991


I don't know about V.3 (maybe ttys are implemented as traditional
character devices with line discipline?), but in V.4 there are
additional messages available that the driver/module can send to
the streams head to get data from the application or put data there.

So the scenario is:
	ioctl gets converted to message and sent downstream
	module/driver sends message upstream requesting any data
	stream head sends data to module/driver
	module/driver performs ioctl
	module/driver sends message upstream containing data
	stream head puts data into app and sends ack
	module/driver acknowledges ioctl

Of course one or the other of the data transfer messages may be skipped.
This processing also supports ioctls that contain addresses of other
data structures in their parameter. Normally the second transfer message
could be substituted by including the response data in the ioctl ack.

Hope this helps...
--
ws at tools.uucp	(Wolfgang Solfrank, TooLs GmbH)	+49-228-230088



More information about the Comp.unix.internals mailing list