From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A006AFD.1030409@domain.hid> Date: Tue, 05 May 2009 09:36:13 -0700 From: Thomas Lockhart MIME-Version: 1.0 References: <5D63919D95F87E4D9D34FF7748CE2C2A018D48CC@ARVMAIL1.mra.roland-man.biz> <49FDFCC7.6000009@domain.hid> <20090504072304.A7E2483420E8@domain.hid> <49FF08C4.40908@domain.hid> <20090504180134.D9D5283420E8@domain.hid> In-Reply-To: <20090504180134.D9D5283420E8@domain.hid> Content-Type: multipart/alternative; boundary="------------050802000203030504020709" Subject: Re: [Xenomai-help] Some problems with shared memory List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wolfgang Denk Cc: "xenomai@xenomai.org" This is a multi-part message in MIME format. --------------050802000203030504020709 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > 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). Hmm. My code does round the length to a multiple of the page size too. I'm pretty sure I would not have done this if it was not required but my svn notes are not explicit on this. The man page could be considered ambiguous: "EINVAL We don't like start, length, or offset (e.g., they are too large, or not aligned on a page boundary)." but only with a liberal reading of the sentence. hth - Tom -- Thomas Lockhart Supervisor, Distributed and Real-time Group Instrument Software and Science Data Systems Caltech/JPL --------------050802000203030504020709 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > 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).


Hmm. My code does round the length to a multiple of the page size too. I'm pretty sure I would not have done this if it was not required but my svn notes are not explicit on this. The man page could be considered ambiguous: "EINVAL We  don’t  like  start,  length, or offset (e.g., they are too large, or not aligned on a page boundary)." but only with a liberal reading of the sentence.

hth

                                      - Tom

--
Thomas Lockhart
Supervisor, Distributed and Real-time Group
Instrument Software and Science Data Systems
Caltech/JPL

--------------050802000203030504020709--