svn commit: r353679 - head/share/man/man9
Andriy Gapon
avg at FreeBSD.org
Thu Oct 17 06:58:09 UTC 2019
Author: avg
Date: Thu Oct 17 06:58:07 2019
New Revision: 353679
URL: https://svnweb.freebsd.org/changeset/base/353679
Log:
document taskqueue_start_threads_in_proc
While here, fix taskqueue_start_threads_cpuset that was documented under
old name of taskqueue_start_threads_pinned.
MFC after: 4 weeks
Modified:
head/share/man/man9/Makefile
head/share/man/man9/taskqueue.9
Modified: head/share/man/man9/Makefile
==============================================================================
--- head/share/man/man9/Makefile Thu Oct 17 06:32:34 2019 (r353678)
+++ head/share/man/man9/Makefile Thu Oct 17 06:58:07 2019 (r353679)
@@ -2085,7 +2085,8 @@ MLINKS+=taskqueue.9 TASK_INIT.9 \
taskqueue.9 taskqueue_run.9 \
taskqueue.9 taskqueue_set_callback.9 \
taskqueue.9 taskqueue_start_threads.9 \
- taskqueue.9 taskqueue_start_threads_pinned.9 \
+ taskqueue.9 taskqueue_start_threads_cpuset.9 \
+ taskqueue.9 taskqueue_start_threads_in_proc.9 \
taskqueue.9 taskqueue_unblock.9 \
taskqueue.9 TIMEOUT_TASK_INIT.9
MLINKS+=tcp_functions.9 register_tcp_functions.9 \
Modified: head/share/man/man9/taskqueue.9
==============================================================================
--- head/share/man/man9/taskqueue.9 Thu Oct 17 06:32:34 2019 (r353678)
+++ head/share/man/man9/taskqueue.9 Thu Oct 17 06:58:07 2019 (r353679)
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 21, 2018
+.Dd October 17, 2019
.Dt TASKQUEUE 9
.Os
.Sh NAME
@@ -69,10 +69,15 @@ struct timeout_task;
.Ft int
.Fn taskqueue_start_threads "struct taskqueue **tqp" "int count" "int pri" "const char *name" "..."
.Ft int
-.Fo taskqueue_start_threads_pinned
-.Fa "struct taskqueue **tqp" "int count" "int pri" "int cpu_id"
+.Fo taskqueue_start_threads_cpuset
+.Fa "struct taskqueue **tqp" "int count" "int pri" "cpuset_t *mask"
.Fa "const char *name" "..."
.Fc
+.Ft int
+.Fo taskqueue_start_threads_in_proc
+.Fa "struct taskqueue **tqp" "int count" "int pri" "struct proc *proc"
+.Fa "const char *name" "..."
+.Fc
.Ft void
.Fn taskqueue_set_callback "struct taskqueue *queue" "enum taskqueue_callback_type cb_type" "taskqueue_callback_fn callback" "void *context"
.Ft void
@@ -152,14 +157,20 @@ Any tasks that are on the queue will be executed at th
which the thread servicing the queue will be signaled that it should exit.
.Pp
Once a taskqueue has been created, its threads should be started using
-.Fn taskqueue_start_threads
+.Fn taskqueue_start_threads ,
+.Fn taskqueue_start_threads_cpuset
or
-.Fn taskqueue_start_threads_pinned .
-.Fn taskqueue_start_threads_pinned
+.Fn taskqueue_start_threads_in_proc .
+.Fn taskqueue_start_threads_cpuset
takes a
-.Va cpu_id
+.Va cpuset
argument which will cause the threads which are started for the taskqueue
-to be pinned to run on the given CPU.
+to be restricted to run on the given CPUs.
+.Fn taskqueue_start_threads_in_proc
+takes a
+.Va proc
+argument which will cause the threads which are started for the taskqueue
+to be assigned to the given kernel process.
Callbacks may optionally be registered using
.Fn taskqueue_set_callback .
Currently, callbacks may be registered for the following purposes:
More information about the svn-src-all
mailing list