FreeNOS
Public Member Functions | Data Fields
InterruptHook Struct Reference

Interrupt hook class. More...

#include <Kernel.h>

Public Member Functions

 InterruptHook (InterruptHandler *h, ulong p)
 Constructor function. More...
 
bool operator== (InterruptHook *i)
 Comparision operator. More...
 

Data Fields

InterruptHandlerhandler
 Executed at time of interrupt. More...
 
ulong param
 Passed to the handler. More...
 

Detailed Description

Interrupt hook class.

Definition at line 58 of file Kernel.h.

Constructor & Destructor Documentation

◆ InterruptHook()

InterruptHook::InterruptHook ( InterruptHandler h,
ulong  p 
)
inline

Constructor function.

Parameters
hHandler function for the hook.
pParameter to pass.

Definition at line 66 of file Kernel.h.

Member Function Documentation

◆ operator==()

bool InterruptHook::operator== ( InterruptHook i)
inline

Comparision operator.

Parameters
iInterruptHook pointer.
Returns
True if equal, false otherwise.

Definition at line 76 of file Kernel.h.

References handler, and param.

Field Documentation

◆ handler

InterruptHandler* InterruptHook::handler

Executed at time of interrupt.

Definition at line 82 of file Kernel.h.

Referenced by operator==().

◆ param

ulong InterruptHook::param

Passed to the handler.

Definition at line 85 of file Kernel.h.

Referenced by operator==().


The documentation for this struct was generated from the following file: