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 rustavailable says 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?"

Workflow

1. Status and when to use Rust

Installs
43
GitHub Stars
310
First Seen
13 days ago