From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Wolfgang Denk <wd@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Some problems with shared memory
Date: Mon, 04 May 2009 20:33:03 +0200 [thread overview]
Message-ID: <49FF34DF.1080802@domain.hid> (raw)
In-Reply-To: <20090504180134.D9D5283420E8@domain.hid>
Wolfgang Denk wrote:
> Dear Thomas,
>
> In message <49FF08C4.40908@domain.hid> you wrote:
>>>>> 1.) If I don´t page align the size of shared memory (multiple of
>>>>> 4096)...
>>> The restrictions for page allignments affect the addr and offset
>>> paraemters only. To me it seems clear that mmap() in plain Linux and
>>> Xenomai behave differently.
>> Sorry for not having the start of the thread. I'm not sure if it is
>> helpful to note that when I implemented memory mapped "device drivers"
>> for our system I had to align the address and offset to the page size
>> before the call to mmap would succeed. That was with plain Linux and the
>> driver also works with Xenomai.
>
> This is correct, and documented behaviour. And if one thinks about
> possible implementations, it just makes sense.
>
> But the problem that the origonal poster reported was a restriction
> of the "length" parameter - his test seems to demonstrate that under
> Xenomai the legth must be a multiple of the page sise, while in plain
> Linux no such restriction exists (I can provide test code for that
> case, if wanted).
All I want to hear is "yes, we ran the shm test without Xenomai, on
exactly the same kernel, on the same platform, and the shm test worked".
Because Xenomai runs plain Linux mmap under the hood and do no
particular check on the mmap length. So, the problem is either that
Linux mmap on that particular machine with that particular kernel does a
check on length, or that there is a subtle bug somewhere that I do not
want to investigate until I am usre that it is real.
--
Gilles.
next prev parent reply other threads:[~2009-05-04 18:33 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 9:31 [Xenomai-help] Some problems with shared memory roderik.wildenburg
2009-03-30 12:14 ` Gilles Chanteperdrix
2009-03-31 11:52 ` roderik.wildenburg
2009-04-06 8:47 ` roderik.wildenburg
2009-05-03 20:21 ` Gilles Chanteperdrix
2009-05-04 7:23 ` Wolfgang Denk
2009-05-04 8:49 ` Gilles Chanteperdrix
2009-05-04 15:24 ` Thomas Lockhart
2009-05-04 18:01 ` Wolfgang Denk
2009-05-04 18:33 ` Gilles Chanteperdrix [this message]
2009-05-05 12:16 ` roderik.wildenburg
2009-05-29 18:42 ` Gilles Chanteperdrix
2009-06-08 8:25 ` roderik.wildenburg
2009-06-08 20:36 ` Gilles Chanteperdrix
2009-06-09 6:30 ` roderik.wildenburg
2009-06-09 13:28 ` Philippe Gerum
2009-06-09 13:38 ` Philippe Gerum
2009-06-10 11:47 ` roderik.wildenburg
2009-06-12 14:06 ` Philippe Gerum
2009-06-16 13:20 ` roderik.wildenburg
2009-06-16 13:45 ` Philippe Gerum
2009-06-17 11:40 ` roderik.wildenburg
2009-06-17 14:19 ` Philippe Gerum
2009-06-18 8:37 ` roderik.wildenburg
2009-06-18 8:51 ` Philippe Gerum
2009-05-05 16:36 ` Thomas Lockhart
2009-05-05 19:03 ` Wolfgang Denk
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=49FF34DF.1080802@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=wd@domain.hid \
--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.