https://github.com/cirocosta/hello-world-lkm
A "hello-world" loadable kernel module
https://github.com/cirocosta/hello-world-lkm
c kernel linux module
Last synced: 4 months ago
JSON representation
A "hello-world" loadable kernel module
- Host: GitHub
- URL: https://github.com/cirocosta/hello-world-lkm
- Owner: cirocosta
- Created: 2018-09-23T15:39:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T15:39:34.000Z (almost 8 years ago)
- Last Synced: 2025-10-10T04:34:34.923Z (9 months ago)
- Topics: c, kernel, linux, module
- Language: C
- Homepage: https://ops.tips
- Size: 1.95 KB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
hello-world-lkm - a "hello-world" loadable kernel module
Usage:
1. install the necessary development headers
sudo apt update -y
sudo apt install -y \
libelf-dev \
linux-headers-`uname -r`
2. build the kernel module
make kbuild
3. load the module
sudo insmod ./hello.ko
4. check that the module has been inserted
lsmod | grep hello
5. check that the module has been really loaded
dmesg
6. remove the module
sudo rmmod hello.ko
https://ops.tips