Skip to content
forked from tsgates/rust.ko

A minimal Linux kernel module written in rust.

Notifications You must be signed in to change notification settings

cuviper/rust.ko

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust.ko

a minimal Linux kernel module written in rust.

TL;DR

To compile you'll need a recent build of Rust (0.13-dev).

Create a file config.mk in the root directory of the repository.

Set RUST_ROOT in this file to the directory containing bin/rustc, e.g. RUST_ROOT := /usr. Then you can compile rust.ko:

$ make
# insmod hello.ko
# rmmod hello
$ dmesg | tail -3
  [54024.186997] hello: init
  [54024.187000] hello from rust
  [54024.191963] hello: exit

$ cat main.rs

refs

About

A minimal Linux kernel module written in rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 34.7%
  • Rust 34.2%
  • C 31.1%