All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Russell Johnson <russell.johnson@kratosdefense.com>
Cc: "xenomai@lists.linux.dev" <xenomai@lists.linux.dev>
Subject: Re: Using an xbuf between two processes
Date: Tue, 09 Aug 2022 08:22:06 +0200	[thread overview]
Message-ID: <877d3hoql3.fsf@xenomai.org> (raw)
In-Reply-To: <PH1P110MB10504D04678A4ABF57F6040FE2639@PH1P110MB1050.NAMP110.PROD.OUTLOOK.COM>


Russell Johnson <russell.johnson@kratosdefense.com> writes:

> [[S/MIME Signed Part:Undecided]]
> Hello,
>
>  
>
> We are intending to split our current application into two separate processes – one with the non-realtime code and one with the realtime code
> (the realtime app will be forked from the non-realtime one). The xbuf appears to be the natural solution for transferring data between the two
> processes. From what I can tell from using it and reading about it on the wiki, it should work for not only inter-thread communication but also
> inter-process communication, correct? I figure one app will create the xbuf (making it public) and the other app will open the already created
> xbuf. Then they can simply read/write back and forth. I just want to clarify that this is one of the intended purposes of the xbuf architecture
> and that we are not architecting ourselves in the wrong direction.
>
>

This is correct, an xbuf is definitely an IPC too - by definition, any
EVL resource which may have public visibility in /dev/evl may be shared
between processes.

You could also use a EVL (public) proxy [1] for sharing a linux 'file'
object between oob and regular threads regardless of the process they
belong to, while keeping real-time guarantees for the former when they
read from, write to such file. To implement IPC, the file can be a
socket, an eventfd, etc.

[1] https://evlproject.org/core/user-api/proxy/

-- 
Philippe.

      reply	other threads:[~2022-08-09  6:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08 21:38 Using an xbuf between two processes Russell Johnson
2022-08-09  6:22 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877d3hoql3.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=russell.johnson@kratosdefense.com \
    --cc=xenomai@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.