summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/workq_add_task.914
1 files changed, 10 insertions, 4 deletions
diff --git a/share/man/man9/workq_add_task.9 b/share/man/man9/workq_add_task.9
index b659419cca0..eb811cf15d6 100644
--- a/share/man/man9/workq_add_task.9
+++ b/share/man/man9/workq_add_task.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: workq_add_task.9,v 1.11 2007/11/28 19:31:53 dlg Exp $
+.\" $OpenBSD: workq_add_task.9,v 1.12 2008/10/30 23:55:22 dlg Exp $
.\"
.\" Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 28 2007 $
+.Dd $Mdocdate: October 30 2008 $
.Dt WORKQ_ADD_TASK 9
.Os
.Sh NAME
@@ -27,7 +27,7 @@
.Ft int
.Fn "workq_add_task" "struct workq *wq" "int flags" "void (*func)(void *, void *)" "void *arg1" "void *arg2"
.Ft struct workq *
-.Fn "workq_create" "const char *name" "int maxthreads"
+.Fn "workq_create" "const char *name" "int maxthreads" "int ipl"
.Ft void
.Fn "workq_destroy" "struct workq *wq"
.Sh DESCRIPTION
@@ -81,6 +81,11 @@ argument specifies the name of the kernel threads that run the tasks.
.Pa maxthreads
specifies the maximum number of worker threads that will service the work
queue.
+.Pa ipl
+specifies the interrupt protection level at which the workq can be safely used.
+See
+.Xr spl 9
+for a list of the IPLs.
.Pp
.Fn workq_destroy
causes the resources associated with a previously created workq to be freed.
@@ -99,7 +104,8 @@ can additionally be called from interrupt context if
.Dv WQ_WAITOK
is not specified.
.Sh SEE ALSO
-.Xr autoconf 9
+.Xr autoconf 9 ,
+.Xr spl 9
.Sh HISTORY
The workq framework was originally written by
.An Ted Unangst Aq tedu@openbsd.org ,