https://github.com/tansudasli/kernel
kernel module development
https://github.com/tansudasli/kernel
c kernel-module
Last synced: 19 days ago
JSON representation
kernel module development
- Host: GitHub
- URL: https://github.com/tansudasli/kernel
- Owner: tansudasli
- License: apache-2.0
- Created: 2021-09-16T10:36:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-16T10:43:00.000Z (over 4 years ago)
- Last Synced: 2025-03-01T04:27:07.394Z (over 1 year ago)
- Topics: c, kernel-module
- Language: C
- Homepage:
- Size: 236 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kernel programming
core kernel module development
## How to Run
on a linux machine,
- to check loaded modules `lsmod`, and `modinfo ..` for more detail
- to list module folder `ls /lib/modules/$(uname -r)`
- check `cat /boot/config-$(uname -r) | grep CONFIG_MODULES` with `=y` value.
then, to build w/
- `git clone ...`, `cd c-sandbox/kernel-programming` and
- `sudo apt-get install build-essential`
- Run `make all` to compile into .ko files,
- to install kernel module `sudo insmod helloworld.ko`
- to see kernel messages `dmesg` or `dmesg -w &` is much better (follow mode)
- to remove kernel module `sudo rmmod helloworld.ko`
- Run `make clean` to clean .ko files