Print this page
5036 taskq(9f): Typos in the man page

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9f/taskq.9f
          +++ new/usr/src/man/man9f/taskq.9f
   1    1  '\" te
   2    2  .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
   3    3  .\" Copyright 1989 AT&T
   4    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5    5  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6    6  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH TASKQ 9F "Mar 1, 2005"
        7 +.TH TASKQ 9F "Jul 25, 2015"
   8    8  .SH NAME
   9    9  taskq, ddi_taskq_create, ddi_taskq_destroy, ddi_taskq_dispatch, ddi_taskq_wait,
  10   10  ddi_taskq_suspend, taskq_suspended, ddi_taskq_resume \- Kernel task queue
  11   11  operations
  12   12  .SH SYNOPSIS
  13   13  .LP
  14   14  .nf
  15   15  #include <sys/sunddi.h>
  16   16  
  17   17  \fBddi_taskq_t *\fR\fBddi_taskq_create\fR(\fBdev_info_t *\fR\fIdip\fR, \fBconst char *\fR\fIname\fR,
↓ open down ↓ 162 lines elided ↑ open up ↑
 180  180  You have a task that isn't time-critical, but a current code path that is.
 181  181  .RE
 182  182  .RS +4
 183  183  .TP
 184  184  2.
 185  185  You have a task that may require grabbing locks that a thread already holds.
 186  186  .RE
 187  187  .RS +4
 188  188  .TP
 189  189  3.
 190      -You have a task that needs to block (for example, to wait for memory), but a
      190 +You have a task that needs to block (for example, to wait for memory), but you 
 191  191  have a thread that cannot block in its current context.
 192  192  .RE
 193  193  .RS +4
 194  194  .TP
 195  195  4.
 196  196  You have a code path that can't complete because of a specific condition,
 197  197  but also can't sleep or fail. In this case, the task is immediately queued and
 198  198  then is executed after the condition disappears.
 199  199  .RE
 200  200  .RS +4
 201  201  .TP
 202  202  5.
 203  203  A task queue is just a simple way to launch multiple tasks in parallel.
 204  204  .RE
 205  205  .sp
 206  206  .LP
 207  207  A task queue consists of a list of tasks, together with one or more threads to
 208  208  service the list. If a task queue has a single service thread, all tasks are
 209  209  guaranteed to execute in the order they were dispatched. Otherwise they can be
 210  210  executed in any order. Note that since tasks are placed on a list, execution of
 211      -one task and should not depend on the execution of another task or a deadlock
 212      -may occur. A \fBtaskq\fR created with a single servicing thread guarantees that
 213      -all the tasks are serviced in the order in which they are scheduled.
      211 +one task should not depend on the execution of another task or a deadlock
      212 +may occur.
 214  213  .sp
 215  214  .LP
 216  215  The \fBddi_taskq_create()\fR function creates a task queue instance.
 217  216  .sp
 218  217  .LP
 219  218  The \fBddi_taskq_dispatch()\fR function places \fBtaskq\fR on the list for
 220  219  later execution. The \fIdflag\fR argument specifies whether it is allowed sleep
 221  220  waiting  for memory. DDI_SLEEP dispatches can sleep and are guaranteed to
 222  221  succeed. DDI_NOSLEEP dispatches are guaranteed not to sleep but may fail
 223  222  (return \fBDDI_FAILURE\fR) if resources are not available.
↓ open down ↓ 48 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX