linux-kernel-module-practice

🐧 Linux Kernel Module Practice

GPL-2.0 License

Stars
8

Linux Kernel Module Practice

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.