Module interrupt

Source
Expand description

Interrupt management system

This module provides a comprehensive interrupt management system for the Scarlet kernel. It supports both local interrupts (via CLINT) and external interrupts (via PLIC) on RISC-V architecture.

Modules§

controllers
Interrupt controller trait definitions

Structs§

InterruptHandle
Handle for managing interrupt processing
InterruptManager
Unified interrupt manager

Enums§

InterruptError
Errors that can occur during interrupt management

Functions§

are_interrupts_enabled
Check if interrupts are currently enabled
disable_interrupts
Disable interrupts globally
enable_interrupts
Enable interrupts globally
with_interrupts_disabled
Execute a closure with interrupts disabled

Type Aliases§

CpuId
CPU ID type
ExternalInterruptHandler
Handler function type for external interrupts
InterruptId
Interrupt ID type
InterruptResult
Result type for interrupt operations
LocalInterruptHandler
Handler function type for local interrupts (timer, software)
Priority
Priority level for interrupts