LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
irq.c File Reference

IRQ Handler and utilities. More...

#include <arch/x86_64/irq.h>
#include <arch/x86_64/idt.h>
#include <arch/x86_64/pic.h>
#include <stddef.h>
Include dependency graph for irq.c:

Go to the source code of this file.

Functions

void irq_register (uint8_t irq, irq_handler_fn fn)
 Registers a handler function for the specified IRQ number.
void irq_handler (struct interrupt_frame *frame)
 Calls the correct handler and returns the interrupt.

Variables

static irq_handler_fn irq_handlers [16]

Detailed Description

IRQ Handler and utilities.

Author
Matheus Boscariol
Since
24/11/2026

Definition in file irq.c.

Function Documentation

◆ irq_handler()

void irq_handler ( struct interrupt_frame * frame)

Calls the correct handler and returns the interrupt.

Parameters
frameThe frame that caused the exception

Definition at line 25 of file irq.c.

Here is the call graph for this function:

◆ irq_register()

void irq_register ( uint8_t irq,
irq_handler_fn fn )

Registers a handler function for the specified IRQ number.

Parameters
irqIRQ number
fnReference to the handler function

Definition at line 18 of file irq.c.

Variable Documentation

◆ irq_handlers

irq_handler_fn irq_handlers[16]
static

Definition at line 16 of file irq.c.