Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 22 days 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T15:39:34.000Z (about 6 years ago)
- Last Synced: 2024-10-04T18:53:19.719Z (about 1 month ago)
- Topics: c, kernel, linux, module
- Language: C
- Homepage: https://ops.tips
- Size: 1.95 KB
- Stars: 7
- Watchers: 2
- 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