Skip to content

simnalamburt/linux-kernel-module-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published