No description
Find a file
2025-12-19 10:54:43 +00:00
Makefile initial 2025-12-19 00:04:00 -05:00
minimal_kmod.odin initial 2025-12-19 00:04:00 -05:00
README.md Update README.md 2025-12-19 10:54:43 +00:00

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.