Jump to content

KernSetIRQ: Difference between revisions

From EDM2
Created page with "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. ==Synopsis=..."
 
mNo edit summary
 
Line 1: Line 1:
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.
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.


==Synopsis==
==Syntax==


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

Latest revision as of 17:27, 4 December 2017

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.