To build module you need to:
- Clone sources git clone --recursive https://github.com/luainkernel/poc-driver
- Assume that you have kernel tree sources in /usr/src/linux
- Then compile:
make
- Run (as root):
insmod ./dependencies/lunatik/lunatik.ko
insmod poc-driver.ko
Loaded driver usage:
Example script helloworld.lua:
print("Hello, World!")
Terminal:
cat helloworld.lua > /dev/luadrv
check dmesg