https://github.com/gamemann/test-kernel-modules
A repository used to store my test Linux kernel modules I make while I'm learning.
https://github.com/gamemann/test-kernel-modules
examples forward kernel linux module net netfilter packet processing
Last synced: 2 months ago
JSON representation
A repository used to store my test Linux kernel modules I make while I'm learning.
- Host: GitHub
- URL: https://github.com/gamemann/test-kernel-modules
- Owner: gamemann
- Created: 2020-09-09T01:13:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T02:17:27.000Z (over 4 years ago)
- Last Synced: 2025-02-28T12:25:38.282Z (3 months ago)
- Topics: examples, forward, kernel, linux, module, net, netfilter, packet, processing
- Language: C
- Homepage: https://moddingcommunity.com/
- Size: 13.7 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kernel Test Modules
## Description
A repository I'm using to release test kernel modules I make. I am getting into kernel module development due to interest in the Linux kernel in general and also because [Bifrost](https://github.com/BifrostTeam), an upcoming firewall my friend and I are working on, will be releasing a kernel module for packet processing.## Testing
To load a module, simply use `make` to build the modules and then the following command:```
insmod $NAME
```Where `$NAME` is the kernel's name you want loaded (e.g. `kern.ko`). Similarly, you can unload the module with the following command:
```
rmmod $NAME
```From here, you may check if the module is loaded by doing:
```
lsmod | grep "$NAME"
```Make sure to remove the file extension at the end of `$NAME` when using `lsmod`.