IPC between Tasks

Michael Jahn michael.jahn at mailbox.tu-dresden.de
Thu Jun 14 15:12:18 CEST 2012


Hello Tobias,

maybe try something like this:

-- Include L4 functionality
require("L4");

local l     = L4.default_loader;
local nsshm = l:create_namespace({});

L4.default_loader:start(
   {
     caps = { testshm = nsshm:m("rws") },
     log  = { "shmc", "yellow" }
   },
   "rom/ex_shmc"
);


Micha

On 06/14/2012 11:30 AM, Tobias Fink wrote:
> Hi,
>
> thank you for your quick answer
>
> 2012/6/13 Sartakov A. Vasily<sartakov at ksyslabs.org>:
>> You need to add in LUA file communication channel:
>>
>> http://os.inf.tu-dresden.de/L4Re/doc/examples_2libs_2l4re_2c_09_09_2shared_ds_2shared_ds_8lua-example.html
> That works for the shared_ds example but I as I tried to get the
> prodcons example to work it still fails. This is the Lua-Script I was
> using:
>
> -- Include L4 functionality
> require("L4");
>
> -- Create a channel from the client to the server
> local channel = L4.default_loader:new_channel();
>
> L4.default_loader:start(
>    {
>      caps = { shm = channel:svr() },
>      log  = { "shmc", "yellow" }
>    },
>    "rom/ex_shmc"
> );
>
> _______________________________________________
> l4-hackers mailing list
> l4-hackers at os.inf.tu-dresden.de
> http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers





More information about the l4-hackers mailing list