Unix Interrupts

XMRP50000[jcm]-a.v.reed avr at mtgzz.UUCP
Tue Feb 16 05:08:15 AEST 1988


In article <3102 at cup.portal.com>, Chuck_SirVAX_Staatse at cup.portal.com writes:
> Does anyone know if UNIX supports a "Connect to Interrupt" facillity
> similar to VMS or RSX. Failing an "Out of the Box" solution, has
> anyone cobbled something together? Target system is a 68000 VME based
> system.  Any takers?

UNIX provides a facility called "signals". Signals may be sent by
processes, open device files, or by the kernel. Most interrupts are used
within device drivers, but it is trivially simple to write a device
driver which will send the appropriate signal, to processes that have
opened it, when device receives an interrupt. Once the driver is
installed, you open its device file to connect to the interrupt, and you
close it to disconnect. You may use any signal - its your system - but
it is good programming practice to restrict yourself to standard signal
semantics:
		01	Hardware termination (hangup)
		02	Catchable interrupt
		03	Quit and dump core
		09	Kill absolutely and immediately (no cleanup!)
		16	User defined signal 1
		17	User defined signal 2
						Adam Reed (mtgzz!avr)



More information about the Comp.unix.questions mailing list