# fishinabarrel/linux-kernel-module-rust

Framework for writing Linux kernel modules in safe Rust

Repository: https://github.com/fishinabarrel/linux-kernel-module-rust
Canonical: https://ross.abutalabs.com/products/linux-kernel-module-rust
Language: Rust
License: GPL-2.0
License Family: copyleft
Archived: true
Last push: 2021-03-06T17:11:22+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3034, "days_push": 2006, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1337, forks 122 (observed 2026-08-28T04:04:25.666449+00:00)

## What it is
A framework for writing loadable Linux kernel modules in safe Rust, providing safe abstractions over kernel interfaces via bindgen-generated FFI bindings. It compiles Rust modules as staticlibs linked into .ko files using the kernel's own build system.

## Use cases
- write linux kernel modules in rust
- create safe rust bindings for kernel apis
- build out-of-tree loadable kernel modules
- experiment with rust in kernel space
- port c kernel modules to rust

## When to choose
- you want memory-safe kernel module development in rust
- you need out-of-tree modules on linux 4.x kernels
- you want a testing ground for rust kernel abstractions

## When to avoid
- you target the latest kernels or upstream support - use Rust-for-Linux instead
- you need non-amd64 architectures
- you require a stable rust toolchain rather than nightly

## Facets
- artifact type: framework
- maturity: maintenance
- function: build-tool, developer-tools, embedded
- domain: operating-systems, developer-tools, programming-languages
- platform: rust, cpp
- tags: kernel-modules, rust-bindings, ffi, systems-programming, out-of-tree-modules, linux

## Member repositories
- fishinabarrel/linux-kernel-module-rust (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.666449+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:44:02.722944+00:00, confidence not recorded.
  - readme: https://github.com/fishinabarrel/linux-kernel-module-rust (fetched 2026-08-28T04:04:25.666449+00:00, sha 5537be1b4922)
- Data as of 2026-08-30T08:39:29.467469+00:00.
