了解Xenomai Timer的超时函数的参数用法,很有意思
时间:2010-10-13 来源:xydrabbit
了解Xenomai Timer的超时函数的参数用法,很有意思
下面这段话说明了Xenomai Timer 的超时函数参数的改变情况
kill cookie in xntimer_t
This is only the simplest part of a potential larger xntimer
restructuring. Other parts need to be rebased, rewritten, or even
rethought yet. One goal is to get the abstraction closer to the kernel's
hrtimer, another one is to check for potential optimisations. More
information will follow the next days or so.]
Almost all users of xntimer_t embed this object in the same meta-object
they later define as cookie of the timer handler. Thus, a simple
container_of could also serve to obtain the cookie in the handler. This conversion is performed by the attached patch. It also handles the
only exception of the rule above: the vwworks skin requires a trampoline
handler for its wdog now. Philippe confirmed earlier that this is
acceptable.
restructuring. Other parts need to be rebased, rewritten, or even
rethought yet. One goal is to get the abstraction closer to the kernel's
hrtimer, another one is to check for potential optimisations. More
information will follow the next days or so.]
Almost all users of xntimer_t embed this object in the same meta-object
they later define as cookie of the timer handler. Thus, a simple
container_of could also serve to obtain the cookie in the handler. This conversion is performed by the attached patch. It also handles the
only exception of the rule above: the vwworks skin requires a trampoline
handler for its wdog now. Philippe confirmed earlier that this is
acceptable.
相关阅读 更多 +