Unix/Linux Go Back    

NetBSD 6.1.5 - man page for __insn_barrier (netbsd section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

__INSN_BARRIER(3)		   BSD Library Functions Manual 		__INSN_BARRIER(3)

     __insn_barrier -- compiler reorder barrier

     #include <sys/cdefs.h>


     The __insn_barrier() macro prevents GCC from moving code across the barrier.  In other
     words, the compiler is not allowed to reorder read and write commands below the barrier with
     the code preceding the barrier.  Like with the volatile type qualifier, __insn_barrier() may
     be necessary in some corner cases to prevent the compiler from misoptimizing.

     gcc(1), cdefs(3), mb(9)

     Paul E. McKenney, Memory Barriers: a Hardware View for Software Hackers,
     http://www.rdrop.com/users/paulmck/scalability/paper/whymb.2010.06.07c.pdf, June 7, 2010.

     The __insn_barrier() macro first appeared in NetBSD 2.0.

BSD					 January 2, 2011				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 02:59 AM.