The InstallInterruptFunctions function installs interrupt service routines in an interrupt member.
OSStatus InstallInterruptFunctions (
InterruptSetID setID,
InterruptMemberNumber member,
void *refCon,
InterruptHandler handlerFunction,
InterruptEnabler enableFunction,
InterruptDisabler disableFunction);
Given the ID of an interrupt set in the interrupt tree and the number of a member in that set, InstallInterruptFunctions installs the designated interrupt handler, enabler, and disabler routines. Interrupt sets and the interrupt tree are discussed in Interrupt Management.
Parameter refCon can be any 32-bit value. Mac OS does not use it; it is merely stored and passed to each invocation of the most recently installed ISR routine. Placing nil in a handlerFunction, enableFunction, or disableFunction parameter will not install a new routine--it will leave the current routine installed.
InstallInterruptFunctions returns noErr if the installation succeeded.
InstallInterruptFunctions may be called only from task level, not from secondary or hardware interrupt level.