Memory Barrier

David Naylor naylor.b.david at
Fri Nov 25 15:25:40 UTC 2016


Is there anyway to implement a memory barrier in FreeBSD without using 
mprotect(2) [1].  Unfortunately, the mprotect(2) method uses mlock(2) and 
mlock(2) does not always work, depending on load and permissions.  

I see there was a proposal on a Linux mailing list for a new syscall to 
implement this functionality [2] but FreeBSD 11.0 does not appear to have it.  


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the freebsd-questions mailing list