__insn_barrier man page on NetBSD

Man page or keyword search:  
man Server   9087 pages
apropos Keyword Search (all sections)
Output format
NetBSD logo
[printable version]

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

NAME
     __insn_barrier — compiler reorder barrier

SYNOPSIS
     #include <sys/cdefs.h>

     void
     __insn_barrier();

DESCRIPTION
     The __insn_barrier() macro prevents GCC from moving code across the bar‐
     rier.  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.

SEE ALSO
     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.

HISTORY
     The __insn_barrier() macro first appeared in NetBSD 2.0.

BSD				January 2, 2011				   BSD
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net