From 9be9d2d2a28526f98bfe6807076d4920b91edb73 Mon Sep 17 00:00:00 2001 From: Alex Hornung Date: Sun, 14 Mar 2010 09:32:00 +0000 Subject: [PATCH] fetch.9 - document casuword --- share/man/man9/Makefile | 1 + share/man/man9/fetch.9 | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 37779d9d7b..9ef34ea147 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -389,6 +389,7 @@ MLINKS+=EVENTHANDLER.9 EVENTHANDLER_DECLARE.9 \ EVENTHANDLER.9 EVENTHANDLER_REGISTER.9 \ EVENTHANDLER.9 eventhandler_register.9 MLINKS+=fetch.9 fubyte.9 \ + fetch.9 casuword.9 \ fetch.9 fusword.9 \ fetch.9 fuword.9 MLINKS+=firmware.9 firmware_image_load.9 \ diff --git a/share/man/man9/fetch.9 b/share/man/man9/fetch.9 index bae7959626..86818276f7 100644 --- a/share/man/man9/fetch.9 +++ b/share/man/man9/fetch.9 @@ -35,11 +35,12 @@ .\" $FreeBSD: src/share/man/man9/fetch.9,v 1.6.2.4 2001/12/17 11:30:18 ru Exp $ .\" $DragonFly: src/share/man/man9/fetch.9,v 1.4 2007/04/07 19:29:52 swildner Exp $ .\" -.Dd January 7, 1996 +.Dd March 14, 2010 .Dt FETCH 9 .Os .Sh NAME .Nm fetch , +.Nm casuword , .Nm fubyte , .Nm fusword , .Nm fuword @@ -49,6 +50,8 @@ .In sys/time.h .In sys/systm.h .In sys/resourcevar.h +.Ft u_long +.Fn casuword "u_long *base" "u_long oldval" "u_long newval" .Ft int .Fn fubyte "const void *base" .Ft int @@ -64,6 +67,18 @@ The .Nm routines provide the following functionality: .Bl -tag -width ".Fn fusword" +.It Fn casuword +Compares +.Fa oldval +with the word at +.Fa base +, and if equal, +.Fa base +is set to +.Fa newval . +The old value at +.Fa base +is then returned. .It Fn fubyte Fetches a byte of data from the user-space address .Fa base . -- 2.11.4.GIT