Re: Increase IPC-Stream size

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
On Wed Feb 04, 2015 at 13:28:11 +0100, ba_f wrote:
> Am 2015-01-31 00:17, schrieb Adam Lackorzynski:
> >>But tell me some about shared memory, please.
> >>
> >>1.) is there an example, anywhere?
> >
> >There's at least the shmc example for the lib. But in a more simple form
> >it is actually not needed. Have a dataspace, make it available to two
> >tasks, and it's shared memory.
> 
> Ok, i prefer using the shmc.h.
> 
> But, the example (libs/shmc) runs two threads.
> I would like to use shared_mem between two tasks.
> 
> Is it possible to use shmc.h to share memory between tasks?

Yes.
 
> I tried to partition 'thread_producer()' and 'thread_consume()' to two
> Tasks.
> But as expected, task_client doesn't know the shared_mem which task_server
> created.

The key is the sharing as you already noticed. The sharing goes via the
namespace given to l4shmc_create. Give both programs the same namespace
(created in ned's script) and they should be able to share.



Adam
-- 
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.