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或任何以后版本的条款分发的。有关详细信息,请参见版权。