converting device driver to STREAMS driver - SYSV 80386

Tom Friedel tpf at jdyx.UUCP
Wed Aug 8 06:08:12 AEST 1990


I have a very simple device driver for a pointer device that uses one 
ioctl GETMOVEMENT to read the current position.  I would like to modify
this driver as little as possible so that I use it with the poll(2)
system call.  

My questions are
1) Should I order the STREAMS Primer or STREAMS Programmer's Guide
   to help me with this, or what books would help.
2) Must the device be a tty? have a read routine? be a STREAMS
   module?  Where can I find documentation about device driver
   line discipline routines?  
3) Does anyone have any sample SYSV/386 mouse driver's.

The driver right now is very simple.  If possible I'd like to keep
it that way.  Maybe I can fake poll(2) out and return that data is readable
every 1/x seconds, and then call the GETMOVEMENT ioctl?

thanks, 
tom friedel

Tom Friedel  JDyx Enterprises (404) 320-7624 tpf at jdyx.UUCP 
Unix BBS:  (404) 325-1719 <= 2400 ; (404) 321-5020 >= 2400
"Live simply, so that others may simply live."
 
-- 
Tom Friedel  JDyx Enterprises (404) 320-7624 tpf at jdyx.UUCP 
Unix BBS:  (404) 325-1719 <= 2400 ; (404) 321-5020 >= 2400
"Live simply, so that others may simply live."
 



More information about the Comp.unix.questions mailing list