On 05/03/2011 10:15 AM, [email protected] wrote:
>> From: [email protected]
> [mailto:[email protected]]
>> On Behalf Of [email protected]
>> Sent: Friday, April 29, 2011 8:31 AM
>> Cc: [email protected]
>> Subject: Re: [Xenomai-help] message pipe message boundaries
>>
>>> From: Philippe Gerum [mailto:[email protected]]
>>> Sent: Wednesday, April 27, 2011 11:43 PM
>>>
>>> On Wed, 2011-04-27 at 14:22 +0200, [email protected]
>>> wrote:
>>>> ... Wouldn't it be desirable to implement the
>>>> readv file operation in the rtpipe driver so that the guarantee
> "One
>>>> read() per rt_pipe_write()" could cover readv(2) also?
>>>
>>> No objection to merge this. Patch welcome.
>>
>> Well, I'll try to come up with one.
>
> 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.
--
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help