https://github.com/kenpusney/lkm-example
Loadable Kernel Module example
https://github.com/kenpusney/lkm-example
Last synced: 10 months ago
JSON representation
Loadable Kernel Module example
- Host: GitHub
- URL: https://github.com/kenpusney/lkm-example
- Owner: kenpusney
- Created: 2017-12-26T05:08:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T12:24:22.000Z (about 8 years ago)
- Last Synced: 2024-12-01T04:21:20.461Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Linux Kernel Module examples
========
## Examples
- `start.c` / `stop.c`: Kernel module in multiple files
- `chardev.c`: Kernel module to simulate a simple character device
- `syscall.c`: Kernel module to hijack syscall open.
All code tested under Ubuntu 16.04.
Dependencies:
```bash
apt install linux-headers-$(uname -r) gcc make
```
## Syscall references:
https://syscalls.kernelgrok.com/