SCO UNIX *double* device driver

Boyd Roberts boyd at necisa.ho.necisa.oz.au
Thu Mar 21 11:27:42 AEST 1991


In article <905 at zeusa.UUCP> hendrik at zeusa.UUCP (Hendrik Vermooten) writes:
>
>I need to "channel" all I/O going to and from a device, through my own
>handler routine (this routine itself uses hardware to do its job).
>

Trivial.  Write your driver so it calls the other driver through the bdevsw.
Make the appropriate devices in dev to reference your driver.  Use these
instead of the ones referencing the device you're overlaying.  Problem solved.

You may have to be a bit careful about handling wakeups to prevent the wrong
thing from happening, but it's not too hard.  Just think about it carefully.

Your driver is just a pseudo-device that manipulates another driver.


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.sysv386 mailing list