Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 522 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 522 Bytes

poc-driver - Linux kernel driver for lunatik

Compiling and running

To build module you need to:

  1. Clone sources git clone --recursive https://github.com/luainkernel/poc-driver
  2. Assume that you have kernel tree sources in /usr/src/linux
  3. Then compile:
make
  1. Run (as root):
insmod ./dependencies/lunatik/lunatik.ko
insmod poc-driver.ko

Usage

Loaded driver usage:

Example script helloworld.lua:

print("Hello, World!")

Terminal:

cat helloworld.lua > /dev/luadrv

check dmesg