simnalamburt / linux-kernel-module-practice

🐧 Linux Kernel Module Practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux Kernel Module Practice

Screenshot of this project's output. It simply prints "Hello, Rust!" and "Bye, Rust!"

Requirements

  • rustup
  • Linux 4.9.0
  • AMD64 CPU

Instructions

# Install Rust nightly compiler and download Rust source codes
rustup toolchain install nightly
rustup +nightly component add rust-src
# Install prerequisites
sudo apt-get install make linux-headers-4.9.0-12-amd64

# Build
make -j

# Load & unload the module, check `dmesg`
sudo insmod mymodule.ko
sudo rmmod mymodule

# Clean
make clean

 


linux-kernel-module-practice is distributed under the terms of the GNU General Public License v2.0 or any later version. See COPYRIGHT for details.

About

🐧 Linux Kernel Module Practice

License:GNU General Public License v2.0


Languages

Language:Makefile 43.3%Language:Rust 35.8%Language:C 18.7%Language:C++ 2.2%