summaryrefslogtreecommitdiffstats
path: root/share/man/man9/taskqueue.9
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2010-10-12 18:36:03 +0000
committermdf <mdf@FreeBSD.org>2010-10-12 18:36:03 +0000
commit58b7823599527ba0561651fa13500a9ef4057900 (patch)
tree876724459ab9be381dd89acdb1b5e8dfdabdc332 /share/man/man9/taskqueue.9
parent5289908373dba0a99d9cfa2640403088bc79ec1f (diff)
downloadFreeBSD-src-58b7823599527ba0561651fa13500a9ef4057900.zip
FreeBSD-src-58b7823599527ba0561651fa13500a9ef4057900.tar.gz
Re-expose and briefly document taskqueue_run(9). The function is used
in at least one 3rd party driver. Requested by: jhb
Diffstat (limited to 'share/man/man9/taskqueue.9')
-rw-r--r--share/man/man9/taskqueue.915
1 files changed, 15 insertions, 0 deletions
diff --git a/share/man/man9/taskqueue.9 b/share/man/man9/taskqueue.9
index d2451a4..83fb051 100644
--- a/share/man/man9/taskqueue.9
+++ b/share/man/man9/taskqueue.9
@@ -67,6 +67,8 @@ struct task {
.Fn taskqueue_drain "struct taskqueue *queue" "struct task *task"
.Ft int
.Fn taskqueue_member "struct taskqueue *queue" "struct thread *td"
+.Ft void
+.Fn taskqueue_run "struct taskqueue *queue" "struct task **tpp"
.Fn TASK_INIT "struct task *task" "int priority" "task_fn_t *func" "void *context"
.Fn TASKQUEUE_DECLARE "name"
.Fn TASKQUEUE_DEFINE "name" "taskqueue_enqueue_fn enqueue" "void *context" "init"
@@ -178,6 +180,19 @@ and
.No 0
otherwise.
.Pp
+The
+.Fn taskqueue_run
+function will run all pending tasks in the specified
+.Fa queue .
+Normally this function is only used internally.
+The
+.Fa tpp
+argument is a pointer to a
+.Vt struct task *
+that is used to record the currently running task.
+The lifetime of this pointer must match that of the
+.Fa queue .
+.Pp
A convenience macro,
.Fn TASK_INIT "task" "priority" "func" "context"
is provided to initialise a
OpenPOWER on IntegriCloud