Rust in the Linux kernel
summary
A Rust kernel module that creates a /dev char device animation is implemented and successfully inserts and logs major/minor numbers; build uses Kbuild plus Rust static libraries unarchived and linked with ld, and relies on xargo nightly to compile libcore for the kernel target. C ABI work includes marking entry points no_mangle and extern "C" functions, using DIY bindings or small C wrappers for preprocessor-heavy APIs, and a safe mutex wrapper that maps to kernel mutexes; overall runtime works and required far less unsafe code than expected.
AI-written summary · about
chapters (7)
- 0:00Start
- 6:10about the type system to rust
- 8:26rust is going to produce native binaries
- 10:06kernel module
- 20:59expose kernel methods directly from kernel space into our rest code
- 21:27wrap kernel api calls in kind of c4c functions
- 25:38rust and linux kernel projects
related talks
35mRUST Meets Embedded Linux: Build Memory Safe and Reliable Kernel Modules, Applications
51mRust in the Linux kernel
39mFrom C to Rust: Bringing Rust Abstractions to Embedded Linux
39mFrom C to Rust: Bringing Rust Abstractions to Embedded Linux
47mRust project goals 2024: Stabilizing Rust in the Linux Kernel
46mRust for Linux
14mKeynote: Rust in the Linux Kernel, Why?
24mRust for Linux: Status Update
