No description
| Makefile | ||
| minimal_kmod.odin | ||
| README.md | ||
This repository contains an example of a minimal Linux kernel module implemented in Odin.
The older init_module/cleanup_module method is used as I don't currently know how to translate the __init/__exit macros from C to Odin.
The provided makefile will by default compile minimal_kmod.odin as an object file with the appropriate flags and then link it using the system's kernel module build system.
This means invoking another makefile that lives in /lib/modules/$(uname -r)/build.
For maximum "oh neat" factor, I recommend opening a second terminal and running dmesg -w to watch the kernel log in realtime before calling insmod/rmmod.