Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Add a simple manual page for the simple sysmo...
details: https://anonhg.NetBSD.org/src/rev/a16f4fae2028
branches: trunk
changeset: 751127:a16f4fae2028
user: jruoho <jruoho%NetBSD.org@localhost>
date: Mon Jan 25 16:16:33 2010 +0000
description:
Add a simple manual page for the simple sysmon task queue.
ok wiz@
diffstat:
share/man/man9/Makefile | 8 +++-
share/man/man9/sysmon_taskq.9 | 65 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+), 3 deletions(-)
diffs (98 lines):
diff -r 5f547235a6ee -r a16f4fae2028 share/man/man9/Makefile
--- a/share/man/man9/Makefile Mon Jan 25 15:55:36 2010 +0000
+++ b/share/man/man9/Makefile Mon Jan 25 16:16:33 2010 +0000
@@ -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 \
diff -r 5f547235a6ee -r a16f4fae2028 share/man/man9/sysmon_taskq.9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man9/sysmon_taskq.9 Mon Jan 25 16:16:33 2010 +0000
@@ -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 thorpej%NetBSD.org@localhost
Home |
Main Index |
Thread Index |
Old Index