Dear all,
is there maybe a list somewhere containing all the LUA bindings that are exported by L4(Re)? I found a few functions in the file src/l4/pkg/lua/lib/l4/ll4lib.c ("ipc_call", "ipc_reply_and_wait" etc.) and also in src/l4/pkg/ned/server/src/ned.lua (mainly "start" and "startv") but specifically I am looking for a command to kill a task. It seems that the file src/l4/pkg/ned/server/src/ned.lua prepares to offer such a function (in the array "_task_ops[]" the function "__task_kill" corresponds to the name "kill"), however I didn't succeed in calling this kill function. What could I be doing wrong? If it is not yet implemented, what needs to be changed? I tried it in interactive ned mode as well as in the mode which interprets a config file (using the latest snapshot). Thanks in advance!
Cheers, Josef Stark
It seems that the file src/l4/pkg/ned/server/src/ned.lua prepares to offer such a function (in the array "_task_ops[]" the function "__task_kill" corresponds to the name "kill")
Here I meant the file src/l4/pkg/ned/server/src/lua_exec.cc instead. Sorry.
Cheers, Josef
On Wed Jul 30, 2014 at 05:28:43 +0000, Stark, Josef wrote:
is there maybe a list somewhere containing all the LUA bindings that are exported by L4(Re)? I found a few functions in the file src/l4/pkg/lua/lib/l4/ll4lib.c ("ipc_call", "ipc_reply_and_wait" etc.) and also in src/l4/pkg/ned/server/src/ned.lua (mainly "start" and "startv") but specifically I am looking for a command to kill a task. It seems that the file src/l4/pkg/ned/server/src/ned.lua prepares to offer such a function (in the array "_task_ops[]" the function "__task_kill" corresponds to the name "kill"), however I didn't succeed in calling this kill function. What could I be doing wrong? If it is not yet implemented, what needs to be changed? I tried it in interactive ned mode as well as in the mode which interprets a config file (using the latest snapshot).
Works like this:
local a = L4.default_loader:start(....); a:kill()
Adam
l4-hackers@os.inf.tu-dresden.de