502c2ed2ba
This example presents a C module with its device (/dev entry) and its content generator with algorithm defined in Lua state. The Lua state can be changed dynamically from userland, without interruption of read(2) over the device. This is an example how to call Lua code from C. |
||
---|---|---|
.. | ||
happy.lua | ||
luareadhappy.c | ||
Makefile |