diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-02-09 03:24:49 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-02-09 03:24:49 +0000 |
commit | 72999c36b07df77ba691c28db8da808f939ce07d (patch) | |
tree | 34e38f4b42a0d7b8642da4252b1dad55b9188ee9 | |
parent | 24ad848078fcf32ba92421894c27fa8abb452209 (diff) |
task_add takes a flags argument now. this throws some words at it,
maybe some will stick.
-rw-r--r-- | share/man/man9/task_add.9 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/share/man/man9/task_add.9 b/share/man/man9/task_add.9 index dbb219ca3e3..ceb8ae9ffdc 100644 --- a/share/man/man9/task_add.9 +++ b/share/man/man9/task_add.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: task_add.9,v 1.13 2015/01/27 03:17:35 dlg Exp $ +.\" $OpenBSD: task_add.9,v 1.14 2015/02/09 03:24:48 dlg Exp $ .\" .\" Copyright (c) 2013 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: January 27 2015 $ +.Dd $Mdocdate: February 9 2015 $ .Dt TASK_ADD 9 .Os .Sh NAME @@ -28,7 +28,12 @@ .Sh SYNOPSIS .In sys/task.h .Ft struct taskq * -.Fn "taskq_create" "const char *name" "unsigned int nthreads" "int ipl" +.Fo "taskq_create" +.Fa "const char *name" +.Fa "unsigned int nthreads" +.Fa "int ipl" +.Fa "unsigned int flags" +.Fc .Ft void .Fn "taskq_destroy" "struct taskq *tq" .Ft void @@ -63,6 +68,15 @@ will be called against the created taskq. See .Xr spl 9 for a list of the IPLs. +You can or the following defines into the +.Fa flags +argument do change the operational characteristics of the taskq: +.Bl -tag -width xxx -offset indent +.It Dv TASKQ_MPSAFE +The threads servicing the taskq will be run without the kernel big lock. +.It Dv TASKQ_CANTSLEEP +The tasks run via the taskq cannot sleep. +.El .Pp .Fn taskq_destroy causes the resources associated with a previously created taskq to be freed. |