[comp.sys.sun] UNIX device driver question

paul@altar.ee.byu.edu (Paul Rawlins) (11/16/90)

Here's a question for you Device Driver guru's:

I am writing a device driver for a board which sits in vme24d32 space on a
Sun-3.  The board is a character device which supports open, close, ioctl,
read, and write.  It is possible that the devices that are being read or
written to may not respond, so the user needs to be able to abort a read
or write by sending a ^C (sigint).  I understand that the driver ignores
all signals if it is sleeping at a priority less than PZERO.  Therefore,
in order to be able to abort the process, the read/write routines must
sleep at a priority greater than PZERO.  

Okay, now for the question: Is there any way of catching this signal
within the driver so that I can go to a clean-up routine which will
disable interrupts, etc?  I would rather not abort the process mid-stream.

Thank you for any insight which you may have.

Paul Rawlins
paul@ee.byu.edu