KernSetIRQ

It is similar to the DevHelp_SetIRQ function but it sets a 32-bit interrupt handler. Thr Interrupt handler must return INTERRUPT_HANDLED or INTERRUPT_NOT_HANDLED.

Syntax
APIRET APIENTRY KernSetIRQ(uint32_t IRQlevel, KernIRQHandler pIRQhandler,  uint32_t IRQflag,  void *pContext);

Parameters

 * IRQlevel : Interrupt level


 * KernIRQHandler : Pointer to a interrupt handler to be set  ( typedef uint32_t __cdecl (*KernIRQHandler)(void*);)


 * IRQflag : Interrupt sharing (0=not shared, 1=shared)


 * pContext : Pointer to “context”. This pointer will be passed to the handler when an interrupt occurs.