How to write a small kernel module
Sample Linux kernel module that prints hello world.
Compile#
Install dev tools and kernel-devel:
sudo dnf install kernel-devel make gccNow you can compiled the module:
cd src
make -C /lib/modules/$(uname -r)/build M=$(pwd) modulesRemove the module and build files with:
make cleanLoad module#
sudo insmod ./hello.koUnload module#
sudo rmmod helloCheck output#
dmesgПохожие репозитории
- dominicusin/fidogate
- dominicusin/zapret
- transgregorial/cve_2016_0728
- transgregorial/GoodbyeDPI
- transgregorial/me-disable
- transgregorial/ninefs
- transgregorial/opendpi
- transgregorial/Padavan_CI
- transgregorial/opendpi
- transgregorial/ninefs
- transgregorial/cve_2016_0728
- transgregorial/GoodbyeDPI
- transgregorial/me-disable
- transgregorial/Padavan_CI