Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!swrinde!zaphod.mps.ohio-state.edu!samsung!emory!jdyx!tpf From: tpf@jdyx.UUCP (Tom Friedel) Newsgroups: comp.unix.questions Subject: converting device driver to STREAMS driver - SYSV 80386 Message-ID: <1990Aug7.200812.830@jdyx.UUCP> Date: 7 Aug 90 20:08:12 GMT Distribution: usa Organization: JDyx Enterprises (Atlanta GA) Lines: 29 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@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@jdyx.UUCP Unix BBS: (404) 325-1719 <= 2400 ; (404) 321-5020 >= 2400 "Live simply, so that others may simply live."