8 months ago | Paul Boddie | raw annotate files changeset graph | Introduced a separate capability receiving operation for clients in place of ipc_message_expect which reserves capability slots, this being appropriate only for servers generally expecting capabilities in messages, being inappropriate for message items representing flexpages. Separated capability and dataspace import operations into client and server variants, avoiding capability allocation in clients where such allocation will occur explicitly in advance and where messages will also not be reused. |
1 -- vim:set ft=lua: 2 3 local L4 = require("L4"); 4 5 local l = L4.default_loader; 6 7 local host_server = l:new_channel(); 8 9 l:startv({ 10 caps = { 11 fsserver = host_server:svr(), 12 jdb = L4.Env.jdb, -- to set the server name 13 }, 14 log = { "server", "r" }, 15 }, 16 "rom/host_server", "10"); 17 18 l:startv({ 19 caps = { 20 fsserver = host_server, 21 }, 22 log = { "client", "g" }, 23 }, 24 "rom/dstest_host_client", "rom/dstest_host_client.cfg", 1024, 1024);