]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: add extensions to the pin-init crate and move relevant documentation there
authorBenno Lossin <benno.lossin@proton.me>
Sat, 8 Mar 2025 11:04:07 +0000 (11:04 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 16 Mar 2025 20:59:18 +0000 (21:59 +0100)
commit86f7dacadeecb9e6cc3e79571fed790b5147652a
tree81ac00cd7f736b02d178d3468026b4c6c88e62ea
parentfbf8fb328d1bfe3bd17d5c5626cb485a1ca1a50d
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
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Tested-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250308110339.2997091-4-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/init.rs [new file with mode: 0644]
rust/kernel/lib.rs
rust/pin-init/src/lib.rs