summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-02-04 20:55:23 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-02-04 20:55:23 +0000
commit3234c41634b7ac59930b928392ac320b297daf04 (patch)
treedbee3797883eefeb5a311f4fb41abc15af3ef68e /share
parent3c43e9e737aa73ab0b2d588c4d592d857fb7b788 (diff)
rename atomic.9 to atomic_setbits_int.9 since the former isn't a function
you can call. discussed briefly with jmc@ who i might have misinterpreted.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/Makefile9
-rw-r--r--share/man/man9/atomic_setbits_int.9 (renamed from share/man/man9/atomic.9)28
2 files changed, 9 insertions, 28 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 69e1e8c9761..54959e8d23c 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,10 +1,11 @@
-# $OpenBSD: Makefile,v 1.199 2014/02/03 07:03:04 dlg Exp $
+# $OpenBSD: Makefile,v 1.200 2014/02/04 20:55:22 dlg Exp $
# $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
-MAN= altq.9 aml_evalnode.9 atomic.9 atomic_add_int.9 atomic_cas_uint.9 \
- atomic_dec_int.9 atomic_inc_int.9 atomic_sub_int.9 atomic_swap_uint.9 \
+MAN= altq.9 aml_evalnode.9 atomic_add_int.9 atomic_cas_uint.9 \
+ atomic_dec_int.9 atomic_inc_int.9 atomic_setbits_int.9 \
+ atomic_sub_int.9 atomic_swap_uint.9 \
audio.9 autoconf.9 \
bio_register.9 boot.9 buffercache.9 bus_dma.9 bus_space.9 \
copy.9 crypto.9 delay.9 \
@@ -37,7 +38,7 @@ MAN= altq.9 aml_evalnode.9 atomic.9 atomic_add_int.9 atomic_cas_uint.9 \
MLINKS+=aml_evalnode.9 aml_evalname.9 aml_evalnode.9 aml_find_node.9 \
aml_evalnode.9 aml_freevalue.9 aml_evalnode.9 aml_val2int.9
-MLINKS+=atomic.9 atomic_setbits_int.9 atomic.9 atomic_clearbits_int.9
+MLINKS+=atomic_setbits_int.9 atomic_clearbits_int.9
MLINKS+=atomic_add_int.9 atomic_add_long.9 \
atomic_add_int.9 atomic_add_int_nv.9 \
atomic_add_int.9 atomic_add_long_nv.9
diff --git a/share/man/man9/atomic.9 b/share/man/man9/atomic_setbits_int.9
index e8f60b722c0..d6389208e1c 100644
--- a/share/man/man9/atomic.9
+++ b/share/man/man9/atomic_setbits_int.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: atomic.9,v 1.7 2014/01/30 08:16:56 jmc Exp $
+.\" $OpenBSD: atomic_setbits_int.9,v 1.1 2014/02/04 20:55:22 dlg Exp $
.\"
.\" Copyright (c) 2007 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -15,11 +15,10 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 30 2014 $
-.Dt ATOMIC 9
+.Dd $Mdocdate: February 4 2014 $
+.Dt ATOMIC_SETBITS_INT 9
.Os
.Sh NAME
-.Nm atomic ,
.Nm atomic_setbits_int ,
.Nm atomic_clearbits_int
.Nd interface to perform atomic operations on data
@@ -30,26 +29,7 @@
.Ft void
.Fn atomic_clearbits_int "unsigned int *p" "unsigned int b"
.Sh DESCRIPTION
-The
-.Nm
-set of functions provide an interface for changing data atomically with
-respect to interrupts and multiple processors in the system.
-.Pp
-There are several sets of atomic memory operations available:
-.Bl -tag -width "atomic_swap(9)" -offset indent
-.It Xr atomic_add 9
-These functions perform atomic addition operations.
-.It Xr atomic_cas 9
-These functions perform atomic compare-and-swap operations.
-.It Xr atomic_dec 9
-These functions perform atomic decrement operations.
-.It Xr atomic_inc 9
-These functions perform atomic increment operations.
-.It Xr atomic_sub 9
-These functions perform atomic subtraction operations.
-.It Xr atomic_swap 9
-These functions perform atomic swap operations.
-.El
+The atomic bits set of functions provide an interface for changing data atomically with respect to interrupts and multiple processors in the system.
.Pp
The
.Fn atomic_setbits_int