libbsd: TIMEOUT(9)
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Apr 19 13:34:30 UTC 2012
On 04/19/2012 03:22 PM, Joel Sherrill wrote:
> On 04/19/2012 04:49 AM, Sebastian Huber wrote:
>> Hi,
>>
>> the current TIMEOUT(9) implementation "rtems-bsd-callout.c" lacks a proper
>> implementation of the timeout() function.
> rtems-bsd-timeout.c:timeout(ftn, arg, to_ticks)
>
> Does this need to be merged into rtems-bsd-callout.c?
>
> Admittedly, it is currently empty. :)
Yes, the timeout() function is the difficult stuff. I didn't need it for the
USB stack.
>
>> http://www.freebsd.org/cgi/man.cgi?query=timeout
>>
>> We currently evaluate a new TIMEOUT(9) implementation so please notify me if
>> someone else works on this topic.
>>
> What do you have in mind?
>
> If you are committing to implementing something in the next
> couple of weeks, that would be awesome. It is on our todo list
> and that would free us to work on something else. There are
> still unresolved symbols to address.
>
Please focus on other stuff. We try to use the kern_timeout.c directly. This
looks good so far with only two unsolved problems up to now
1. it uses spin mutexes, and
2. it uses SLEEPQUEUE(9).
I think we need SLEEPQUEUE(9) anyway since this enables wakeup() etc.
http://www.freebsd.org/cgi/man.cgi?query=sleepqueue
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list