From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DC03CE8.4050608@domain.hid> Date: Tue, 03 May 2011 19:35:36 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <1183078C0D064042B3AD2D03E3859EF174E31A@AREXCH02.mra.roland-man.biz><1303849652.1961.7.camel@domain.hid><1183078C0D064042B3AD2D03E3859EF174E3E4@domain.hid><1183078C0D064042B3AD2D03E3859EF174E43D@AREXCH02.mra.roland-man.biz><1303940558.1932.33.camel@domain.hid> <1183078C0D064042B3AD2D03E3859EF174E5BC@AREXCH02.mra.roland-man.biz><1183078C0D064042B3AD2D03E3859EF174E826@domain.hid> <4DBFE062.3020902@domain.hid> <1183078C0D064042B3AD2D03E3859EF174E87B@AREXCH02.mra.roland-man.biz> In-Reply-To: <1183078C0D064042B3AD2D03E3859EF174E87B@AREXCH02.mra.roland-man.biz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] message pipe message boundaries List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dietmar.schindler@domain.hid Cc: xenomai@xenomai.org On 05/03/2011 01:27 PM, dietmar.schindler@domain.hid wrote: >> From: xenomai-help-bounces@domain.hid > [mailto:xenomai-help-bounces@domain.hid] >> On Behalf Of Gilles Chanteperdrix >> Sent: Tuesday, May 03, 2011 1:01 PM >> >> On 05/03/2011 10:15 AM, dietmar.schindler@domain.hid wrote: >>> ... >>> We at manroland now use (with Xenomai 2.4) the attached patch, which >>> implements the readv file operation in the rtpipe driver so that the >>> assertion "One read() per rt_pipe_write()" (message boundaries >>> preserved) covers readv(2) also. >>> >> >> I think implementing the readv method is sufficient, you do not need > to >> implement both readv and read. > > I agree; since read was already implemented, I just extended it to > support readv. Unfortunately, the patch as is is a bit hard to read. IMO, only implementing readv will result in a more straight-forward implementation which we could merge. -- Gilles.