Conceptual
Login

Using the Rust Samples Directory as a Curriculum

The kernel ships a folder of small, working Rust modules, each demonstrating exactly one thing: the smallest possible module, printing, a character-like device, direct memory transfers, a driver on a platform bus, a driver on a PCI card. They are maintained alongside the code they demonstrate, so unlike a blog post they cannot go stale. Reading and building them in order is the cheapest way to learn the kernel's Rust interfaces. Skipping them usually means reinventing an example that already exists.

Questions this Concept answers

  • Why are the in-tree Rust samples more reliable learning material than an online tutorial?

This Concept is waiting for its first lesson!

The kernel ships a folder of small, working Rust modules, each demonstrating exactly one thing: the smallest possible module, printing, a character-like device, direct memory transfers, a driver on a platform bus, a driver on a PCI card. They are maintained alongside the code they demonstrate, so unlike a blog post they cannot go stale. Reading and building them in order is the cheapest way to learn the kernel's Rust interfaces. Skipping them usually means reinventing an example that already exists.

Are you a teacher? Sign in to start contributing.

Sign In