LUA bindings / kill task

Adam Lackorzynski adam at os.inf.tu-dresden.de
Thu Jul 31 00:07:11 CEST 2014


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
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/



More information about the l4-hackers mailing list