* [Xenomai-help] atomic_t in userspace
@ 2006-02-15 15:20 Steven Seeger
2006-02-15 15:39 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Steven Seeger @ 2006-02-15 15:20 UTC (permalink / raw)
To: xenomai@xenomai.org
I just upgraded to the latest SVN after a few months of hiatus, and my
userspace app that used atomic_t through nucleus/asm/atomic.h no longer
works. It says it can't find atomic_t, and it seems that all the atomic
operations have been put inside a kernel only #if. Is there another way to
use atomics in my shadowed threads from userspace? Is there any equivalent?
Steven
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] atomic_t in userspace
2006-02-15 15:20 [Xenomai-help] atomic_t in userspace Steven Seeger
@ 2006-02-15 15:39 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-02-15 15:39 UTC (permalink / raw)
To: Steven Seeger; +Cc: xenomai@xenomai.org
Steven Seeger wrote:
> I just upgraded to the latest SVN after a few months of hiatus, and my
> userspace app that used atomic_t through nucleus/asm/atomic.h no longer
> works. It says it can't find atomic_t, and it seems that all the atomic
> operations have been put inside a kernel only #if. Is there another way to
> use atomics in my shadowed threads from userspace? Is there any equivalent?
>
Atomic ops were formerly obtained by including linux/include/asm/atomic.h, and
doing so from user-space context caused a number of troubles, notably to C++
users. Additionally, doing so was clearly bad practice since we would cause
namespace pollution and all sort of conflicts with kernel-only symbols. For this
reason, it has been decided to (re-)implement the very few atomic ops we need in
the user-space section of xenomai/include/asm-*/atomic.h, instead of reading them
from the kernel file(s). But since atomic counters are not needed (anymore) by
Xenomai's user-space code, they have not been provided.
You should implement your local copy of the missing stuff, or directly include
linux/include/asm/atomic.h from your own headers, but at your own risk.
> Steven
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-15 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-15 15:20 [Xenomai-help] atomic_t in userspace Steven Seeger
2006-02-15 15:39 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.