Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: GPL-2.0-only
//! Rust faux device sample.
use kernel::{
faux,
prelude::*,
Module, //
};
module! {
type: SampleModule,
name: "rust_faux_driver",
authors: ["Lyude Paul"],
description: "Rust faux device sample",
license: "GPL",
}
struct SampleModule {
_reg: faux::Registration,
}
impl Module for SampleModule {
fn init(_module: &'static ThisModule) -> Result<Self> {
pr_info!("Initialising Rust Faux Device Sample\n");
let reg = faux::Registration::new(c"rust-faux-sample-device", None)?;
dev_info!(reg, "Hello from faux device!\n");
Ok(Self { _reg: reg })
}
}