Re: [Xenomai-core] [PATCH 2/2] Provide owner name via rt_mutex_inquire

2008-07-31 Thread Philippe Gerum
Jan Kiszka wrote: This can be helpful for debugging the (futile) release attempts of mutexes by tasks that do not own them. Returning the RT_TASK reference may appear more consistent on first sight, but it cannot be guaranteed that the owner is actually a native task. Therefore this patch

Re: [Xenomai-core] [PATCH 2/2] Provide owner name via rt_mutex_inquire

2008-07-11 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: Another possibility would be to use snprintf instead of strncpy in xnobject_copy_name, and use xnobject_copy_name here. Yet another possibility would be to use strlcpy, available in kernel-space. But it is funny, glibc people does not seem to like strlcpy for

[Xenomai-core] [PATCH 2/2] Provide owner name via rt_mutex_inquire

2008-07-10 Thread Jan Kiszka
This can be helpful for debugging the (futile) release attempts of mutexes by tasks that do not own them. Returning the RT_TASK reference may appear more consistent on first sight, but it cannot be guaranteed that the owner is actually a native task. Therefore this patch uses the symbolic name.

Re: [Xenomai-core] [PATCH 2/2] Provide owner name via rt_mutex_inquire

2008-07-10 Thread Gilles Chanteperdrix
Jan Kiszka wrote: This can be helpful for debugging the (futile) release attempts of mutexes by tasks that do not own them. Returning the RT_TASK reference may appear more consistent on first sight, but it cannot be guaranteed that the owner is actually a native task. Therefore this patch

Re: [Xenomai-core] [PATCH 2/2] Provide owner name via rt_mutex_inquire

2008-07-10 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: This can be helpful for debugging the (futile) release attempts of mutexes by tasks that do not own them. Returning the RT_TASK reference may appear more consistent on first sight, but it cannot be guaranteed that the owner is actually a native

Re: [Xenomai-core] [PATCH 2/2] Provide owner name via rt_mutex_inquire

2008-07-10 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: This can be helpful for debugging the (futile) release attempts of mutexes by tasks that do not own them. Returning the RT_TASK reference may appear more consistent on first sight, but it cannot be guaranteed that the owner is

Re: [Xenomai-core] [PATCH 2/2] Provide owner name via rt_mutex_inquire

2008-07-10 Thread Philippe Gerum
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: This can be helpful for debugging the (futile) release attempts of mutexes by tasks that do not own them. Returning the RT_TASK reference may appear more consistent on first sight, but it cannot be guaranteed that the owner is