From 86f7dacadeecb9e6cc3e79571fed790b5147652a Mon Sep 17 00:00:00 2001 From: Benno Lossin Date: Sat, 8 Mar 2025 11:04:07 +0000 Subject: rust: add extensions to the pin-init crate and move relevant documentation there In preparation of splitting off the pin-init crate from the kernel crate, move all kernel-specific documentation from pin-init back into the kernel crate. Also include an example from the user-space version [1] adapted to the kernel. The new `init.rs` file will also be populated by kernel-specific extensions to the pin-init crate by the next commits. Link: https://github.com/Rust-for-Linux/pin-init/blob/c1417c64c71229f0fd444d75e88f33e3c547c829/src/lib.rs#L161 [1] Signed-off-by: Benno Lossin Reviewed-by: Fiona Behrens Tested-by: Andreas Hindborg Link: https://lore.kernel.org/r/20250308110339.2997091-4-benno.lossin@proton.me Signed-off-by: Miguel Ojeda --- rust/kernel/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rust/kernel/lib.rs') diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index c1b781371ba3..e3933f3dfc0b 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -52,6 +52,9 @@ pub mod firmware; pub mod fs; #[path = "../pin-init/src/lib.rs"] pub mod init; +// momentarily use the name `init_ext` and set the path manually +#[path = "init.rs"] +pub mod init_ext; pub mod io; pub mod ioctl; pub mod jump_label; -- cgit v1.2.3