Examples of Linux Device Drivers, currently for my own machine with kernel 3.10(Centos 7.9.2009).
NOTE: This is a GPL licensed fork of the original Linux-Device-Driver. It's just for the aim of learning. For for information, please visit the original work.
The examples in this repo are compiled against Linux Kernel 5.10. Other versions of the Kernel are not tested.
Set KERNELDIR environment variable to the Linux kernel source dir, and export
it to your local shell.
export KERNELDIR=/path/to/kernel/source/This environment variable is mainly used in Makefile to determine which kernel source tree the drivers are built against.
Linux-Device-Driver by d0u9 is licensed under a GNU General Public License, version 2.