Print this page
5881 corrected maxall vs. maxalloc in comments

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/taskq.c
          +++ new/usr/src/uts/common/os/taskq.c
↓ open down ↓ 70 lines elided ↑ open up ↑
  71   71   * Dynamic task queues may also place tasks in the normal queue (called "backing
  72   72   * queue") when task pool runs out of resources. Users of task queues may
  73   73   * disallow such queued scheduling by specifying TQ_NOQUEUE in the dispatch
  74   74   * flags.
  75   75   *
  76   76   * The backing task queue is also used for scheduling internal tasks needed for
  77   77   * dynamic task queue maintenance.
  78   78   *
  79   79   * INTERFACES ==================================================================
  80   80   *
  81      - * taskq_t *taskq_create(name, nthreads, pri, minalloc, maxall, flags);
       81 + * taskq_t *taskq_create(name, nthreads, pri, minalloc, maxalloc, flags);
  82   82   *
  83   83   *      Create a taskq with specified properties.
  84   84   *      Possible 'flags':
  85   85   *
  86   86   *        TASKQ_DYNAMIC: Create task pool for task management. If this flag is
  87   87   *              specified, 'nthreads' specifies the maximum number of threads in
  88   88   *              the task queue. Task execution order for dynamic task queues is
  89   89   *              not predictable.
  90   90   *
  91   91   *              If this flag is not specified (default case) a
↓ open down ↓ 29 lines elided ↑ open up ↑
 121  121   *
 122  122   *        TASKQ_CPR_SAFE: This flag specifies that users of the task queue will
 123  123   *              use their own protocol for handling CPR issues. This flag is not
 124  124   *              supported for DYNAMIC task queues.  This flag is not compatible
 125  125   *              with TASKQ_THREADS_CPU_PCT.
 126  126   *
 127  127   *      The 'pri' field specifies the default priority for the threads that
 128  128   *      service all scheduled tasks.
 129  129   *
 130  130   * taskq_t *taskq_create_instance(name, instance, nthreads, pri, minalloc,
 131      - *    maxall, flags);
      131 + *    maxalloc, flags);
 132  132   *
 133  133   *      Like taskq_create(), but takes an instance number (or -1 to indicate
 134  134   *      no instance).
 135  135   *
 136      - * taskq_t *taskq_create_proc(name, nthreads, pri, minalloc, maxall, proc,
      136 + * taskq_t *taskq_create_proc(name, nthreads, pri, minalloc, maxalloc, proc,
 137  137   *    flags);
 138  138   *
 139  139   *      Like taskq_create(), but creates the taskq threads in the specified
 140  140   *      system process.  If proc != &p0, this must be called from a thread
 141  141   *      in that process.
 142  142   *
 143      - * taskq_t *taskq_create_sysdc(name, nthreads, minalloc, maxall, proc,
      143 + * taskq_t *taskq_create_sysdc(name, nthreads, minalloc, maxalloc, proc,
 144  144   *    dc, flags);
 145  145   *
 146  146   *      Like taskq_create_proc(), but the taskq threads will use the
 147  147   *      System Duty Cycle (SDC) scheduling class with a duty cycle of dc.
 148  148   *
 149  149   * void taskq_destroy(tap):
 150  150   *
 151  151   *      Waits for any scheduled tasks to complete, then destroys the taskq.
 152  152   *      Caller should guarantee that no new tasks are scheduled in the closing
 153  153   *      taskq.
↓ open down ↓ 2156 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX