Memory barriers & the kernel
Memory barriers & the kernel
- Subject: Memory barriers & the kernel
- From: Dave Keck <email@hidden>
- Date: Wed, 3 Mar 2010 02:58:09 -1000
Hey list,
Coming from userland I'm accustomed to the implicit memory barriers
across mutexes as well as the OSAtomic functions. In kernel
documentation though, there are hardly any mentions of barriers.
(Particularly confusing is their omission from the kernel's version of
OSAtomic.h, while they exist in the userspace version.)
Do kernel-space mutexes and OSAtomic functions employ barriers? If
not, isn't that unsafe?
Thanks for your help!
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden