[comp.sys.sun] Character Device Driver

paul@altar.ee.byu.edu (Paul Rawlins) (01/17/91)

I have a board on the VMEBus which needs to be able to transfer packets
ranging from 1 - 100,000 bytes quickly.  I have a "driver" which uses
mmap() that works fairly well.  However, I need a real driver (primarily
for interrupt capability) which works at roughly the same rate.  I have
written one using the physio() routine as described in Sun's "Writing
Device Drivers" manual.  The problem is that for repeated short transfers,
the driver gets clobbered by the overhead in calling the write, physio,
and strategy routines.  

Does anyone know of references or example programs (preferably via ftp)
which describe character drivers in more detail?  Any help would be
greatly appreciated.

Paul Rawlins
paul@ee.byu.edu