All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Michael Haberler <mail17@mah.priv.at>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] shared memory compatibility - advice sought
Date: Tue, 16 Apr 2013 20:08:44 +0200	[thread overview]
Message-ID: <516D93AC.1040703@xenomai.org> (raw)
In-Reply-To: <08EA9EC3-6EBE-4527-AE0C-D44F9FB8A9E1@mah.priv.at>

On 04/16/2013 02:59 PM, Michael Haberler wrote:

> 
> I've gotten the char shm driver to work flawlessly as suggested, and
> am now looking into dumping the rest of the SysV IPC legacy code in
> the linuxcnc code base and replace it by shm_open/mmap
> 
> reading up on the Xenomai Posix skin a bit late (ahem) it occurs to
> me the best solution would have been to use the Xenomai Posix skin
> throughout, kernel and userland, dump my little driver, and be done
> with it
> 
> the catch, of course, is that the Xenomai Posix skin is available on,
> well, Xenomai only, which leaves out the RTAI and vanilla kernels
> cases, and any other flavor downstream
> 
> reading up on ksrc/skins/posix/shm.c it occurs to me it isnt exactly
> a copy & paste job getting that to run without the Xenomai
> environment


The reason is that the posix shm interface is not exactly simple. By
defining your own API, you can do something much simpler. You them
implement the API directly in kernel-space with return memory, and in
user-space by using the ioctls provided by the driver.


-- 
                                                                Gilles.


  reply	other threads:[~2013-04-16 18:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-10 21:24 [Xenomai] shared memory compatibility - advice sought Michael Haberler
2013-04-10 22:31 ` Gilles Chanteperdrix
2013-04-10 23:39   ` Michael Haberler
2013-04-11  0:42     ` Gilles Chanteperdrix
2013-04-11  6:40       ` Gilles Chanteperdrix
2013-04-11  7:00       ` Michael Haberler
2013-04-11  7:05         ` Gilles Chanteperdrix
2013-04-11  8:35           ` Michael Haberler
2013-04-11 19:28             ` Gilles Chanteperdrix
2013-04-16 12:59               ` Michael Haberler
2013-04-16 18:08                 ` Gilles Chanteperdrix [this message]
2013-04-16 19:53                   ` Michael Haberler

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=516D93AC.1040703@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mail17@mah.priv.at \
    --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.