Initial commit

Signed-off-by: Jolan Rathelot <jrathelo@student.42nice.fr>
This commit is contained in:
Jolan Rathelot
2024-03-04 16:42:01 +01:00
commit b20836700d
9 changed files with 13654 additions and 0 deletions

28
src/lib.rs Normal file
View File

@@ -0,0 +1,28 @@
#![allow(unused_imports)]
#![allow(missing_docs)]
use kernel::prelude::*;
module! {
type: DriverAndInterrupts,
name: "driver_and_interrupts",
author: "Jolan Rathelot <jrathelo@student.42nice.fr>",
description: "driver_and_interrupts 42 project",
license: "GPL",
}
struct DriverAndInterrupts { }
impl kernel::Module for DriverAndInterrupts {
fn init(_module: &'static ThisModule) -> Result<Self> {
pr_info!("Drivers and Interrupts (Init)");
Ok(DriverAndInterrupts {})
}
}
impl Drop for DriverAndInterrupts {
fn drop(&mut self) {
pr_info!("Drivers and Interrupts (exit)")
}
}