Message-ID: <53738A80.3070606@xenomai.org> Date: Wed, 14 May 2014 17:23:44 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <531A29CC.4040201@xenomai.org> <533FF394.1020405@xenomai.org> <535A3B92.5070206@siemens.com> <535A4E5F.9060109@xenomai.org> <535FC7A8.3060508@siemens.com> <5367F922.6070808@xenomai.org> <53686F9C.1020207@siemens.com> <536E4FCD.2080102@xenomai.org> <53737E1A.8060209@siemens.com> In-Reply-To: <53737E1A.8060209@siemens.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] RTDM rework (2) List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Xenomai On 05/14/2014 04:30 PM, Jan Kiszka wrote: > Hi Gilles, > > On 2014-05-10 18:11, Gilles Chanteperdrix wrote: >> Hi Jan, >> >> I have pushed a new version which addresses your comments in the >> "for-forge-rtdm-rework" branch. >> >> You can ignore the "whitespace cleanup" commit, it is just there to >> allow me to simply commit without whitespace issues, it will be removed >> later on. >> >> Note that analogy has not been updated to the API change, I will address >> this later, if you agree with the current version. > > Looks good. > > Minor note on rtdm_device::open/socket doc: They are running > non-real-time context, and the documentation should mention this clearly > (compare to the regular file ops with their two variants). > > I can't look at the implementation, unfortunately. Ok, one change you may have missed: the close callback now returns void. Since the close callback is now invoked when the reference count reaches 0, it is not always possible to return the error to the user. The automatic periodic invocation of close when it returns EAGAIN is also removed: it is possible to get the same result by using rtdm_fd_lock/rtdm_fd_unlock, so for the sake of simplicity, only this solution was kept. -- Gilles.