INTRENABLE(10.2) INTRENABLE(10.2)
NAME
intrenable - interrupt handler registration
SYNOPSIS
void intrenable(int v, void (*f)(Ureg*, void*), void* a, int
tbdf);
DESCRIPTION
Intrenable registers f to be executed by the system on
receipt of the interrupt defined by the platform-dependent
encoding v (it is often an interrupt level, but can be more
complex). The pointer a is passed to f. The tbdf parameter
is a platform-dependent value that denotes the type of bus,
bus instance, device number and function (cf. the PCI device
indexing scheme).
A linked list of such functions is maintained per interrupt
level. The intrenable function inserts the current function
at the head of that list.
There is no mechanism for removing an interrupt handler from
the list.
The Ureg structure provided to f contains the registers at
the time of interrupt. The contents are platform specific;
see the include file u.h.
SEE ALSO
splhi(10.2)
Page 1 Plan 9 (printed 11/9/25)