Lunatik is a scripting framework that allows for Lua scripting within the Linux kernel. It includes a Lua interpreter modified for kernel use, a device driver written in Lua, and a command-line tool for managing runtime environments. Notable features include creating character device drivers to generate random ASCII characters and a Lua 5.4-based kernel version. Lunatik does not support floating-point arithmetic, certain Lua APIs, and dynamic loading of C modules. It also provides C APIs for creating and managing runtime environments. The framework allows for loading and running scripts, managing kernel modules, and interacting with kernel facilities in Lua.
https://github.com/luainkernel/lunatik