rust-for-linux
Installation
SKILL.md
Rust for Linux
Purpose
Guide agents through writing Linux kernel code in Rust (examples checked against Linux 7.3): toolchain setup, the kernel crate, pin-init, out-of-tree modules, misc and platform drivers, and testing with KUnit.
Triggers
- "How do I write a Linux kernel module in Rust?"
- "
make rustavailablesays Rust is not available" - "How does pin-init /
try_pin_init!work for a kernel mutex?" - "How do I build an out-of-tree Rust kernel module?"
- "Is there a Rust abstraction for this subsystem yet?"
- "How do I test kernel Rust code with KUnit?"