This repository contains a collection of custom Linux kernel modules. Each module is designed to extend or modify the functionality of the Linux kernel in various ways. These modules serve as examples and can be used as a starting point for creating your own modules.
Kernel modules are pieces of code that can be dynamically loaded into the Linux kernel to add or extend functionality without requiring a kernel reboot. This repository includes modules that demonstrate various features and use cases
- memmod.c: A driver that monitors ram usage and sends an alert to all users via the terminal
- memproc.ko: A driver when provides the total and free ram users via the /proc/ interface.
To build and use these kernel modules, you will need the following:
- A Linux system with kernel headers installed (specific to your kernel version).
- The
make
utility and a C compiler (gcc
).
You can install the necessary tools with:
sudo apt-get install build-essential linux-headers-$(uname -r)