*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: atomic_swap_uint | Section: 9 | Source: OpenBSD | File: atomic_swap_uint.9
ATOMIC_SWAP_UINT(9) FreeBSD Kernel Developer's Manual ATOMIC_SWAP_UINT(9) NAME atomic_swap_uint, atomic_swap_ulong, atomic_swap_ptr - atomic swap operations SYNOPSIS #include <sys/atomic.h> unsigned int atomic_swap_uint(volatile unsigned int *p, unsigned int new); unsigned long atomic_swap_ulong(volatile unsigned long *p, unsigned long new); void * atomic_swap_ptr(volatile void *p, void *new); DESCRIPTION The atomic_swap set of functions provide an interface for atomically performing swap operations with respect to interrupts and multiple processors in the system. The value referenced by the pointer p is replaced by the value new. CONTEXT atomic_swap_uint(), atomic_swap_ulong(), and atomic_swap_ptr() can all be called during autoconf, from process context, or from interrupt context. RETURN VALUES These functions return the value at p as it was before the swap operation. SEE ALSO atomic_cas_uint(9) HISTORY The atomic_swap functions first appeared in NetBSD 5.0 and OpenBSD 5.5. FreeBSD 14.1-RELEASE-p8 July 18, 2014 FreeBSD 14.1-RELEASE-p8

Navigation Options