Module Name:    src
Committed By:   dyoung
Date:           Tue Nov 17 18:36:07 UTC 2009

Modified Files:
        src/distrib/sets/lists/comp: mi
        src/share/man/man9: Makefile spl.9

Log Message:
Describe spllower(9) and splraise(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1338 -r1.1339 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.297 -r1.298 src/share/man/man9/Makefile
cvs rdiff -u -r1.34 -r1.35 src/share/man/man9/spl.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1338 src/distrib/sets/lists/comp/mi:1.1339
--- src/distrib/sets/lists/comp/mi:1.1338	Fri Nov  6 13:36:01 2009
+++ src/distrib/sets/lists/comp/mi	Tue Nov 17 18:36:07 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1338 2009/11/06 13:36:01 njoly Exp $
+#	$NetBSD: mi,v 1.1339 2009/11/17 18:36:07 dyoung Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -9182,8 +9182,10 @@
 ./usr/share/man/cat9/splclock.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/splhigh.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/splimp.0			comp-sys-catman		.cat
+./usr/share/man/cat9/spllower.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/spllowersoftclock.0	comp-sys-catman		.cat
 ./usr/share/man/cat9/splnet.0			comp-sys-catman		.cat
+./usr/share/man/cat9/splraise.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/splraiseipl.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/splsched.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/splserial.0		comp-sys-catman		.cat
@@ -14585,8 +14587,10 @@
 ./usr/share/man/html9/splclock.html		comp-sys-htmlman	html
 ./usr/share/man/html9/splhigh.html		comp-sys-htmlman	html
 ./usr/share/man/html9/splimp.html		comp-sys-htmlman	html
+./usr/share/man/html9/spllower.html		comp-sys-htmlman	html
 ./usr/share/man/html9/spllowersoftclock.html	comp-sys-htmlman	html
 ./usr/share/man/html9/splnet.html		comp-sys-htmlman	html
+./usr/share/man/html9/splraise.html		comp-sys-htmlman	html
 ./usr/share/man/html9/splraiseipl.html		comp-sys-htmlman	html
 ./usr/share/man/html9/splsched.html		comp-sys-htmlman	html
 ./usr/share/man/html9/splserial.html		comp-sys-htmlman	html
@@ -20193,8 +20197,10 @@
 ./usr/share/man/man9/splclock.9			comp-sys-man		.man
 ./usr/share/man/man9/splhigh.9			comp-sys-man		.man
 ./usr/share/man/man9/splimp.9			comp-sys-man		.man
+./usr/share/man/man9/spllower.9			comp-sys-man		.man
 ./usr/share/man/man9/spllowersoftclock.9	comp-sys-man		.man
 ./usr/share/man/man9/splnet.9			comp-sys-man		.man
+./usr/share/man/man9/splraise.9			comp-sys-man		.man
 ./usr/share/man/man9/splraiseipl.9		comp-sys-man		.man
 ./usr/share/man/man9/splsched.9			comp-sys-man		.man
 ./usr/share/man/man9/splserial.9		comp-sys-man		.man

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.297 src/share/man/man9/Makefile:1.298
--- src/share/man/man9/Makefile:1.297	Thu Nov  5 00:20:25 2009
+++ src/share/man/man9/Makefile	Tue Nov 17 18:36:07 2009
@@ -1,4 +1,4 @@
-#       $NetBSD: Makefile,v 1.297 2009/11/05 00:20:25 dyoung Exp $
+#       $NetBSD: Makefile,v 1.298 2009/11/17 18:36:07 dyoung Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -613,7 +613,9 @@
 	softintr.9 softint_establish.9 softintr.9 softint_disestablish.9 \
 	softintr.9 softint_schedule.9
 MLINKS+=spl.9 spl0.9 spl.9 splbio.9 spl.9 splclock.9 spl.9 splhigh.9 \
-	spl.9 splimp.9 spl.9 spllowersoftclock.9 spl.9 splnet.9 \
+	spl.9 splimp.9 \
+	spl.9 spllower.9 spl.9 spllowersoftclock.9 spl.9 splnet.9 \
+	spl.9 splraise.9 \
 	spl.9 splsched.9 spl.9 splserial.9 \
 	spl.9 splsoftclock.9 spl.9 splsoftnet.9 spl.9 splsoftserial.9 \
 	spl.9 splstatclock.9 spl.9 spltty.9 spl.9 splvm.9 spl.9 splx.9 \

Index: src/share/man/man9/spl.9
diff -u src/share/man/man9/spl.9:1.34 src/share/man/man9/spl.9:1.35
--- src/share/man/man9/spl.9:1.34	Mon May 18 14:01:31 2009
+++ src/share/man/man9/spl.9	Tue Nov 17 18:36:07 2009
@@ -1,4 +1,4 @@
-.\"	$NetBSD: spl.9,v 1.34 2009/05/18 14:01:31 wiz Exp $
+.\"	$NetBSD: spl.9,v 1.35 2009/11/17 18:36:07 dyoung Exp $
 .\"
 .\" Copyright (c) 2000, 2001 Jason R. Thorpe.  All rights reserved.
 .\" Copyright (c) 1997 Michael Long.
@@ -27,11 +27,13 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 13, 2008
+.Dd November 17, 2009
 .Dt SPL 9
 .Os
 .Sh NAME
 .Nm spl ,
+.Nm spllower ,
+.Nm splraise ,
 .Nm spl0 ,
 .Nm splhigh ,
 .Nm splvm ,
@@ -45,6 +47,10 @@
 .Sh SYNOPSIS
 .In sys/intr.h
 .Ft void
+.Fn spllower "int s"
+.Ft int
+.Fn splraise "int s"
+.Ft void
 .Fn spl0 void
 .Ft int
 .Fn splhigh void
@@ -207,6 +213,35 @@
 which must be a value previously returned by one of the other
 .Nm
 functions.
+.Pp
+The
+.Fn spllower
+function sets the system priority level to the one encoded in
+.Fa s ,
+if
+.Fa s
+is lower than the current level.
+Otherwise, it does not change the level.
+Use
+.Fn splx
+instead
+of
+.Fn spllower ,
+except in extraordinary circumstances.
+.Pp
+The
+.Fn splraise
+function sets the system priority level to the one encoded in
+.Fa s ,
+if
+.Fa s
+is greater than the current level, and returns the previous level.
+Otherwise, it does not change the level, and it returns the current level.
+Except in extraordinary circumstances, 
+do not use
+.Fn splraise .
+Use one of the priority-raising functions above, instead.
+.Pp
 .Sh SEE ALSO
 .Xr condvar 9 ,
 .Xr mutex 9 ,

Reply via email to