LUACTL(8) | System Manager's Manual | LUACTL(8) |
luactl
— control
kernel Lua states
luactl |
[-cq ] |
luactl |
[-cq ] create
name [desc] |
luactl |
[-cq ] destroy
name |
luactl |
[-cq ] load
name path |
luactl |
[-cq ] require
name module |
The luactl
program allows the manipulation
of Lua states in the kernel. Lua states are created using the
“create
” command (see below), Lua
bindings are provided as modules. To make a Lua binding available to a
state, it must be “required”. Once a module
has been “required” by a state, it can not
be unloaded from memory using the
modunload(8) command until
the state using it has been destroyed.
Lua code can be loaded from the file system into a state at anytime, please note that code loaded into a state is immediately executed.
When executed without a command, luactl
reads information about the Lua states and displays it.
The options are as follows:
create
name [desc]destroy
nameload
name pathrequire
name moduleThe luactl
command first appeared in
NetBSD 7.0.
The luactl
program was written by
Marc Balmer
<marc@msys.ch>.
April 10, 2017 | NetBSD 10.99 |