atomic_clearbits_int man page on OpenBSD

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

ATOMIC(9)		     OpenBSD Kernel Manual		     ATOMIC(9)

NAME
     atomic, atomic_setbits_int, atomic_clearbits_int - interface to perform
     atomic operations on data

SYNOPSIS
     #include <machine/atomic.h>

     void
     atomic_setbits_int(unsigned int *p, unsigned int b);

     void
     atomic_clearbits_int(unsigned int *p, unsigned int b);

DESCRIPTION
     The atomic set of functions provide an interface for changing data
     atomically with respect to interrupts and multiple processors in the
     system.

     The atomic_setbits_int() function sets the bits in b in the integer
     pointed to by p.  It is equivalent to

	   *p |= b;

     The atomic_clearbits_int() function clears the bits in b in the integer
     pointed to by p.  It is equivalent to

	   *p &= ~b;

HISTORY
     The atomic functions first appeared in OpenBSD 4.1.

OpenBSD 4.9			 May 31, 2007			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

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