Skip to content

Lymkwi/rust-foxes-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust 'Foxes' out-of-tree module

This basic module creates a single virtual device called /dev/foxes that continuously outputs the Unicode fox emoji when read. 🦊

It is based on the Rust for Linux out-of-tree-module template and JackOS' Rust for Kernel development tutorial.

All warnings and considerations from the Rust for Linux foudation's repository apply here. For the sake of efficacy, here are the instructions to build this module on a kernel with Rust support:

$ make KDIR=.../linux-with-rust-support LLVM=1
make -C .../linux-with-rust-support M=$PWD
make[1]: Entering directory '.../linux-with-rust-support'
  RUSTC [M] .../rust-foxes-module/rust_foxes.o
  MODPOST .../rust-foxes-module/Module.symvers
  CC [M]  .../rust-foxes-module/rust_foxes.mod.o
  LD [M]  .../rust-foxes-module/rust_foxes.ko
make[1]: Leaving directory '.../linux-with-rust-support'

About

A Linux Kernel module written in Rust that creates a device which outputs foxes 🦊

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published