blueOkiris / Rust-Kernel-Mod

Integration of Rust code with a C-based Linux Kernel Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust-Kernel-Mod

Description

Integration of Rust code with a C-based Linux Kernel Module

This project sets up a minimalistic Linux kernel module in C which it uses to "bootstrap" Rust code so to speak.

I also include examples of how to link multiple Rust files together while doing this and how to integrate some C kernel functions with the Rust.

Building the Module

Just run make.

NOTE: You must use a path with no spaces when building Linux kernel modules, including this one!

Requirements

  • Linux Kernel Headers
  • Make
  • Gcc
  • Cargo Nightly
    • If you only have stable, use rustup toolchain install nightly to install nightly
    • Simply installing nightly will not set it as default, don't worry

About

Integration of Rust code with a C-based Linux Kernel Module

License:GNU General Public License v3.0


Languages

Language:C 54.6%Language:Rust 45.4%