All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Shared memory between RT and NRT tasks (Posix Skin)
@ 2018-05-03 17:49 Virendra Kate
  2018-05-03 17:51 ` Greg Gallagher
  0 siblings, 1 reply; 5+ messages in thread
From: Virendra Kate @ 2018-05-03 17:49 UTC (permalink / raw)
  To: xenomai

Hello,

I am trying to create a shared memory between a RT (Cobalt) and a NRT
(Linux) task. I went through the " A Tour of the Native API " document
which pointed me towards the alchemy (previously "native") API.

Currently we are using the Posix skin as it has better performance. This
link:
http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__posix__shm.html
indicates
that the typical posix share memory API was available for Xenoami Cobalt in
version 2.4.

Since the shared memory section is missing in the Xenomai 3 documentation
and I couldn't find the --wrap shm_open() etc. flags in the
"cobalt.wrappers" file I was wondering if this functionality is supported
in Xenomai 3 Posix skin.

At this point I am avoiding the use of message queues.

Any help is appreciated.

Thanks,
Virendra Kate

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Shared memory between RT and NRT tasks (Posix Skin)
  2018-05-03 17:49 [Xenomai] Shared memory between RT and NRT tasks (Posix Skin) Virendra Kate
@ 2018-05-03 17:51 ` Greg Gallagher
  2018-05-03 18:33   ` Virendra Kate
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Gallagher @ 2018-05-03 17:51 UTC (permalink / raw)
  To: Virendra Kate; +Cc: Xenomai@xenomai.org

Have you considered using xddp sockets instead?  How large is the
memory you are sharing?

-Greg

On Thu, May 3, 2018 at 1:49 PM, Virendra Kate <virendrakate@gmail.com> wrote:
> Hello,
>
> I am trying to create a shared memory between a RT (Cobalt) and a NRT
> (Linux) task. I went through the " A Tour of the Native API " document
> which pointed me towards the alchemy (previously "native") API.
>
> Currently we are using the Posix skin as it has better performance. This
> link:
> http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__posix__shm.html
> indicates
> that the typical posix share memory API was available for Xenoami Cobalt in
> version 2.4.
>
> Since the shared memory section is missing in the Xenomai 3 documentation
> and I couldn't find the --wrap shm_open() etc. flags in the
> "cobalt.wrappers" file I was wondering if this functionality is supported
> in Xenomai 3 Posix skin.
>
> At this point I am avoiding the use of message queues.
>
> Any help is appreciated.
>
> Thanks,
> Virendra Kate
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Shared memory between RT and NRT tasks (Posix Skin)
  2018-05-03 17:51 ` Greg Gallagher
@ 2018-05-03 18:33   ` Virendra Kate
  2018-05-03 18:42     ` Greg Gallagher
  0 siblings, 1 reply; 5+ messages in thread
From: Virendra Kate @ 2018-05-03 18:33 UTC (permalink / raw)
  To: Greg Gallagher; +Cc: Xenomai@xenomai.org

I am still looking into xddp but might not be the best solution for us.

The shared memory is 16MB big.

-Virendra

On Thu, May 3, 2018 at 10:51 AM, Greg Gallagher <greg@embeddedgreg.com> wrote:
> Have you considered using xddp sockets instead?  How large is the
> memory you are sharing?
>
> -Greg
>
> On Thu, May 3, 2018 at 1:49 PM, Virendra Kate <virendrakate@gmail.com> wrote:
>> Hello,
>>
>> I am trying to create a shared memory between a RT (Cobalt) and a NRT
>> (Linux) task. I went through the " A Tour of the Native API " document
>> which pointed me towards the alchemy (previously "native") API.
>>
>> Currently we are using the Posix skin as it has better performance. This
>> link:
>> http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__posix__shm.html
>> indicates
>> that the typical posix share memory API was available for Xenoami Cobalt in
>> version 2.4.
>>
>> Since the shared memory section is missing in the Xenomai 3 documentation
>> and I couldn't find the --wrap shm_open() etc. flags in the
>> "cobalt.wrappers" file I was wondering if this functionality is supported
>> in Xenomai 3 Posix skin.
>>
>> At this point I am avoiding the use of message queues.
>>
>> Any help is appreciated.
>>
>> Thanks,
>> Virendra Kate
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> https://xenomai.org/mailman/listinfo/xenomai


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Shared memory between RT and NRT tasks (Posix Skin)
  2018-05-03 18:33   ` Virendra Kate
@ 2018-05-03 18:42     ` Greg Gallagher
  2018-05-03 18:59       ` Virendra Kate
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Gallagher @ 2018-05-03 18:42 UTC (permalink / raw)
  To: Virendra Kate; +Cc: Xenomai@xenomai.org

I can continue to do some digging, but I've only really used xddp.
I'm sure someone on the list can help out.

On Thu, May 3, 2018 at 2:33 PM, Virendra Kate <virendrakate@gmail.com> wrote:
> I am still looking into xddp but might not be the best solution for us.
>
> The shared memory is 16MB big.
>
> -Virendra
>
> On Thu, May 3, 2018 at 10:51 AM, Greg Gallagher <greg@embeddedgreg.com> wrote:
>> Have you considered using xddp sockets instead?  How large is the
>> memory you are sharing?
>>
>> -Greg
>>
>> On Thu, May 3, 2018 at 1:49 PM, Virendra Kate <virendrakate@gmail.com> wrote:
>>> Hello,
>>>
>>> I am trying to create a shared memory between a RT (Cobalt) and a NRT
>>> (Linux) task. I went through the " A Tour of the Native API " document
>>> which pointed me towards the alchemy (previously "native") API.
>>>
>>> Currently we are using the Posix skin as it has better performance. This
>>> link:
>>> http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__posix__shm.html
>>> indicates
>>> that the typical posix share memory API was available for Xenoami Cobalt in
>>> version 2.4.
>>>
>>> Since the shared memory section is missing in the Xenomai 3 documentation
>>> and I couldn't find the --wrap shm_open() etc. flags in the
>>> "cobalt.wrappers" file I was wondering if this functionality is supported
>>> in Xenomai 3 Posix skin.
>>>
>>> At this point I am avoiding the use of message queues.
>>>
>>> Any help is appreciated.
>>>
>>> Thanks,
>>> Virendra Kate
>>> _______________________________________________
>>> Xenomai mailing list
>>> Xenomai@xenomai.org
>>> https://xenomai.org/mailman/listinfo/xenomai


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Shared memory between RT and NRT tasks (Posix Skin)
  2018-05-03 18:42     ` Greg Gallagher
@ 2018-05-03 18:59       ` Virendra Kate
  0 siblings, 0 replies; 5+ messages in thread
From: Virendra Kate @ 2018-05-03 18:59 UTC (permalink / raw)
  To: Greg Gallagher; +Cc: Xenomai@xenomai.org

Thanks Greg.


On Thu, May 3, 2018 at 11:42 AM Greg Gallagher <greg@embeddedgreg.com>
wrote:

> I can continue to do some digging, but I've only really used xddp.
> I'm sure someone on the list can help out.
>
> On Thu, May 3, 2018 at 2:33 PM, Virendra Kate <virendrakate@gmail.com>
> wrote:
> > I am still looking into xddp but might not be the best solution for us.
> >
> > The shared memory is 16MB big.
> >
> > -Virendra
> >
> > On Thu, May 3, 2018 at 10:51 AM, Greg Gallagher <greg@embeddedgreg.com>
> wrote:
> >> Have you considered using xddp sockets instead?  How large is the
> >> memory you are sharing?
> >>
> >> -Greg
> >>
> >> On Thu, May 3, 2018 at 1:49 PM, Virendra Kate <virendrakate@gmail.com>
> wrote:
> >>> Hello,
> >>>
> >>> I am trying to create a shared memory between a RT (Cobalt) and a NRT
> >>> (Linux) task. I went through the " A Tour of the Native API " document
> >>> which pointed me towards the alchemy (previously "native") API.
> >>>
> >>> Currently we are using the Posix skin as it has better performance.
> This
> >>> link:
> >>>
> http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__posix__shm.html
> >>> indicates
> >>> that the typical posix share memory API was available for Xenoami
> Cobalt in
> >>> version 2.4.
> >>>
> >>> Since the shared memory section is missing in the Xenomai 3
> documentation
> >>> and I couldn't find the --wrap shm_open() etc. flags in the
> >>> "cobalt.wrappers" file I was wondering if this functionality is
> supported
> >>> in Xenomai 3 Posix skin.
> >>>
> >>> At this point I am avoiding the use of message queues.
> >>>
> >>> Any help is appreciated.
> >>>
> >>> Thanks,
> >>> Virendra Kate
> >>> _______________________________________________
> >>> Xenomai mailing list
> >>> Xenomai@xenomai.org
> >>> https://xenomai.org/mailman/listinfo/xenomai
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-03 18:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 17:49 [Xenomai] Shared memory between RT and NRT tasks (Posix Skin) Virendra Kate
2018-05-03 17:51 ` Greg Gallagher
2018-05-03 18:33   ` Virendra Kate
2018-05-03 18:42     ` Greg Gallagher
2018-05-03 18:59       ` Virendra Kate

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.