linux kernel module practice
1.0.0
# 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 cleanLinux-Kernel模塊實踐是根據GNU通用公共許可證v2.0或任何以後版本的條款分發的。有關詳細信息,請參見版權。