[okl4-developer] Direct IPC from OKLinux userland processes to OKL4 services
Jorge Torres
jorge.torres.maldonado at gmail.com
Thu Feb 28 14:52:04 EST 2008
Hi Damien,
I think this could be possible to do, the problem I see, other than knowing
the thread id of the thread you want to communicate with, is including the
libraries that would let you call the L4 IPC syscalls on you "userland"
linux programs,
Kind regards.
Jorge
On Wed, Feb 27, 2008 at 8:09 PM, Nelson Tam <nelson at ok-labs.com> wrote:
> Hi Damien,
>
> On 26/02/2008, at 01:27, Damien Schulz wrote:
>
> > is it possible to have IPC directly from OKLinux userland processes
> > - no matter if it is a good idea or not? So far I've written a
> > procfs module that is able to communicate with OKL4, but I'd like to
> > directly use the IDL interface in my user processes.
> >
> > If I understand it correctly, every linux process is started as an
> > OKL4 process, so it should be possible anyway. Is there a way to
> > simply allow IPC or would that require further changes in the
> > OKLinux fork() implementation?
>
> That's certainly possible. Every thread in OKLinux is created using
> the eas_create_thread() function in OKL4. Threads created in this
> manner are allowed to IPC to other OKL4 service threads. Therefore,
> as long as you know the thread id of the service you want to IPC to,
> OKLinux userland threads are able to utilise OKL4 services.
>
> For a good example of this in action, take a look at linux/
> kernel-2.6.10-v1/arch/l4/drivers/ig_serial.c. The OKLinux kernel uses
> the OKL4 virtual serial device as the serial console, and this file
> shows you how this is setup.
>
> Nelson.
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080227/1fbb6b7d/attachment.htm
More information about the Developer
mailing list