Module Name:    src
Committed By:   jruoho
Date:           Mon Jan 25 16:16:34 UTC 2010

Modified Files:
        src/share/man/man9: Makefile
Added Files:
        src/share/man/man9: sysmon_taskq.9

Log Message:
Add a simple manual page for the simple sysmon task queue.

ok wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.310 -r1.311 src/share/man/man9/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man9/sysmon_taskq.9

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

Modified files:

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.310 src/share/man/man9/Makefile:1.311
--- src/share/man/man9/Makefile:1.310	Mon Jan 25 07:51:17 2010
+++ src/share/man/man9/Makefile	Mon Jan 25 16:16:33 2010
@@ -1,4 +1,4 @@
-#       $NetBSD: Makefile,v 1.310 2010/01/25 07:51:17 jruoho Exp $
+#       $NetBSD: Makefile,v 1.311 2010/01/25 16:16:33 jruoho Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -48,8 +48,9 @@
 	secmodel_suser.9 setjmp.9 shutdownhook_establish.9 \
 	signal.9 sockopt.9 softintr.9 spl.9 splraiseipl.9 \
 	store.9 suspendsched.9 \
-	sysctl.9 sysmon_envsys.9 tc.9 tcp_congctl.9 timecounter.9 \
-	time_second.9 todr.9 tvtohz.9 uiomove.9 ucom.9 userret.9 \
+	sysctl.9 sysmon_envsys.9 sysmon_taskq.9 tc.9 tcp_congctl.9 \
+	timecounter.9 time_second.9 todr.9 tvtohz.9 \
+	uiomove.9 ucom.9 userret.9 \
 	vattr.9 veriexec.9 vcons.9 vfs.9 vfs_hooks.9 vfsops.9 vfssubr.9 \
 	video.9 vme.9 \
 	vnfileops.9 vnode.9 vnodeops.9 vnsubr.9 \
@@ -658,6 +659,7 @@
 	sysmon_envsys.9 sysmon_envsys_unregister.9 \
 	sysmon_envsys.9 sysmon_envsys_sensor_attach.9 \
 	sysmon_envsys.9 sysmon_envsys_sensor_detach.9
+MLINKS+=sysmon_taskq.9 sysmon_task_queue_sched.9
 MLINKS+=time_second.9 boottime.9 time_second.9 time_uptime.9
 MLINKS+=timecounter.9 tc_init.9
 MLINKS+=tc.9 tc_intr_establish.9 \

Added files:

Index: src/share/man/man9/sysmon_taskq.9
diff -u /dev/null src/share/man/man9/sysmon_taskq.9:1.1
--- /dev/null	Mon Jan 25 16:16:34 2010
+++ src/share/man/man9/sysmon_taskq.9	Mon Jan 25 16:16:33 2010
@@ -0,0 +1,65 @@
+.\" $NetBSD: sysmon_taskq.9,v 1.1 2010/01/25 16:16:33 jruoho Exp $
+.\"
+.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Jukka Ruohonen.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (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 January 24, 2010
+.Dt SYSMON_TASKQ 9
+.Os
+.Sh NAME
+.Nm sysmon_taskq
+.Nd simple general purpose task queue
+.Sh SYNOPSIS
+.In dev/sysmon/sysmon_taskq.h
+.Ft int
+.Fn sysmon_task_queue_sched "u_int pri" "void (*func)(void *)" "void *arg"
+.Sh DESCRIPTION
+The machine-independent
+.Nm
+provides a simple general purpose task queue.
+It can be used to run callbacks that require thread context,
+but do not warrant the use of a more fine-grained solution.
+.Pp
+The
+.Fn sysmon_task_queue_sched
+enqueues
+.Fa func
+to be executed at the priority
+.Fa pri .
+If
+.Fa pri
+is 0, the scheduled function will be placed as the last element in the queue.
+The single argument passed to
+.Fa func
+is specified by
+.Fa arg .
+.Sh SEE ALSO
+.Xr queue 3 ,
+.Xr kthread 9 ,
+.Xr workqueue 9
+.Sh AUTHORS
+.An Jason R. Thorpe Aq thor...@netbsd.org

Reply via email to