Character Device Driver

Paul Rawlins paul at altar.ee.byu.edu
Thu Jan 17 10:44:12 AEST 1991


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 at ee.byu.edu



More information about the Comp.sys.sun mailing list