Re: [Xenomai-core] Enhanced RTDM device closure

2007-02-25 Thread Jan Kiszka
Jan Kiszka wrote: > Hi, > > a few changes of the RTDM layer were committed to trunk recently. They > make handling of RTDM file descriptors more handy: > > o rt_dev_close/POSIX-close now polls as long as the underlying device >reports -EAGAIN. No more looping inside the application is requir

Re: [Xenomai-core] Enhanced RTDM device closure

2007-02-21 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> I have to have a closer look at the code. But you are right, since the >>> ppd cannot vanish under our feet, maybe is it possible to call >>> xnshadow_ppd_get without holding the nklock at all. We "only" have to >>>

Re: [Xenomai-core] Enhanced RTDM device closure

2007-02-21 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >>I have to have a closer look at the code. But you are right, since the >>ppd cannot vanish under our feet, maybe is it possible to call >>xnshadow_ppd_get without holding the nklock at all. We "only" have to >>suppose that the lists manipulation rou

Re: [Xenomai-core] Enhanced RTDM device closure

2007-02-21 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >> >>> Jan Kiszka wrote: >>> Hi, a few changes of the RTDM layer were committed to trunk recently. They make handling of RTDM file descriptors more handy: o rt_dev_close/POSIX-close now poll

Re: [Xenomai-core] Enhanced RTDM device closure

2007-02-21 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > >>Jan Kiszka wrote: >> >>>Hi, >>> >>>a few changes of the RTDM layer were committed to trunk recently. They >>>make handling of RTDM file descriptors more handy: >>> >>> o rt_dev_close/POSIX-close now polls as long as the underlying device >>> re

Re: [Xenomai-core] Enhanced RTDM device closure

2007-02-21 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Hi, >> >> a few changes of the RTDM layer were committed to trunk recently. They >> make handling of RTDM file descriptors more handy: >> >> o rt_dev_close/POSIX-close now polls as long as the underlying device >>reports -EAGAIN. No more loopi

Re: [Xenomai-core] Enhanced RTDM device closure

2007-02-21 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Hi, > > a few changes of the RTDM layer were committed to trunk recently. They > make handling of RTDM file descriptors more handy: > > o rt_dev_close/POSIX-close now polls as long as the underlying device >reports -EAGAIN. No more looping inside the application is requir

[Xenomai-core] Enhanced RTDM device closure

2007-02-21 Thread Jan Kiszka
Hi, a few changes of the RTDM layer were committed to trunk recently. They make handling of RTDM file descriptors more handy: o rt_dev_close/POSIX-close now polls as long as the underlying device reports -EAGAIN. No more looping inside the application is required. This applies to the usual