All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: ayaida marwane <ayaida_marwane@yahoo.fr>, xenomai@xenomai.org
Subject: Re: RTDM Kernel Driver exchanging with Linux Application via /dev/rtp0/ using RTIPC Protocol and XDDP socket
Date: Tue, 5 May 2020 21:22:49 +0200	[thread overview]
Message-ID: <010c1454-3ce4-6bca-b64d-a9797213d734@siemens.com> (raw)
In-Reply-To: <94C4E050-9732-4A9D-B358-7F93BB36E96D@yahoo.fr>

On 29.04.20 23:21, ayaida marwane via Xenomai wrote:
> Dear all,
> 
> I am trying to develop a simple example of a RTDM driver running from Xenomai Kernel, that exchanges a string ("Hello world!") with a Linux Application using /dev/rtp0.
> 
> I already succeeded doing this with Xenomai 2 using RT_PIPE. However, as I understand, this using RT_PIPE from the Kernel depreciated in Xenomai 3 and it is recommended to use RTIPC Protocol and a XDDP socket.
> 
> In the documentation, there are some examples (xddp-echo.c, xddp-label.c and xddp-stream.c), that worked well in my Xenomai 3.0.7 installed on a Raspberry Pi3.
> 
> However, these examples are using a simple socket Protocol (socket(), bind(), sendto() and recvfrom()) using the POSIX Skin. So, using this in a RTDM module, will surely not work.
> 
> Therefore, as I understand, I have to use the Real-time IPC defined in the RTDM Skin  (socket__AF_RTIPC(), bind__AF_RTIPC(), sendmsg__AF_RTIPC() and recvmsg__AF_RTIPC()).
> 

These calls do not exist (where did you find them?) as your build error 
also says. Check the inter-driver API for such a stacking scenario. It 
provides rtdm_socket, rtdm_sendmsg etc.

Depending on what kind of Linux application shall use the API in the 
end, it can be simpler to compile that for Xenomai and use the RTDM 
userspace API directly to talk to the RTDM driver.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


  reply	other threads:[~2020-05-05 19:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <94C4E050-9732-4A9D-B358-7F93BB36E96D.ref@yahoo.fr>
2020-04-29 21:21 ` RTDM Kernel Driver exchanging with Linux Application via /dev/rtp0/ using RTIPC Protocol and XDDP socket ayaida marwane
2020-05-05 19:22   ` Jan Kiszka [this message]
2020-05-09  0:59     ` ayaida marwane
2020-05-11  6:44       ` Jan Kiszka
2022-05-23 22:16       ` ayaida marwane

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=010c1454-3ce4-6bca-b64d-a9797213d734@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=ayaida_marwane@yahoo.fr \
    --cc=xenomai@xenomai.org \
    /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.