Lunatik is a framework for scripting the Linux kernel with Lua.

Modules

byteorder Byte Order Conversion
completion Lua bindings for kernel completion mechanisms.
cpu Lua interface to Linux CPU abstractions.
crypto Lua interface to the Linux Crypto API.
darken Encrypted Lua script execution using AES-256-CTR.
data Direct memory access and manipulation.
device Low-level Lua interface for creating Linux character device drivers.
fib Forwarding Information Base (FIB) rules.
fifo kfifo (kernel FIFO) implementation.
hid Lua interface to the Linux HID subsystem.
lighten Encrypted Lua script support (AES-256-CTR).
lunatik Manages Lunatik runtimes — isolated Lua states running in the kernel.
lunatik.runner Manages the execution and lifecycle of Lunatik scripts.
linux Various Linux kernel facilities.
linux.eth Linux kernel constants exposed under linux.eth.
linux.kbd Linux kernel constants exposed under linux.kbd.
linux.netdev Linux kernel constants exposed under linux.netdev.
linux.nf Linux kernel constants exposed under linux.nf.
linux.notify Linux kernel constants exposed under linux.notify.
linux.signal Linux kernel constants exposed under linux.signal.
linux.socket Linux kernel constants exposed under linux.socket.
linux.stat Linux kernel constants exposed under linux.stat.
linux.syscall Linux kernel constants exposed under linux.syscall.
linux.task Linux kernel constants exposed under linux.task.
linux.vt Linux kernel constants exposed under linux.vt.
linux.xdp Linux kernel constants exposed under linux.xdp.
mailbox Inter-runtime communication mechanism using FIFOs and completions.
net Network utility functions.
netfilter Lua interface to the Linux Netfilter framework.
skb Linux socket buffer interface.
notifier Notifier chain mechanism.
probe kprobes interface.
rcu RCU-synchronized hash table.
signal POSIX Signals
socket Low-level Lua interface for kernel networking sockets.
socket.inet Internet (AF_INET) socket operations.
socket.raw RAW AF_PACKET socket operations.
socket.unix UNIX domain socket (AF_UNIX) operations.
syscall Accessing kernel system call information.
syscall.table A table mapping system call names to their kernel addresses.
thread Kernel thread primitives.
xdp eXpress Data Path (XDP) integration.

Classes

crypto.hkdf HMAC-based Extract-and-Expand Key Derivation Function (HKDF) based on RFC 5869.
crypto_aead Lua interface to AEAD (Authenticated Encryption with Associated Data) ciphers.
crypto_comp Lua interface to synchronous compression algorithms.
crypto_rng Lua interface to synchronous Random Number Generators (RNG).
crypto_shash Lua interface to synchronous message digest (hash) algorithms, including HMAC.
crypto_skcipher Lua interface to symmetric-key ciphers (SKCIPHER).

Topics

README.md
generated by LDoc 1.5.0 Last updated 2026-05-09 15:39:54