Lines Matching defs:func

155  * taskqid_t taskq_dispatch(tq, func, arg, flags):
157 * Dispatches the task "func(arg)" to taskq. The 'flags' indicates whether
163 * ASSUMES: func != NULL.
191 * void taskq_dispatch_ent(tq, func, arg, flags, tqent)
198 * until the function (func) is called. (However, func itself
255 * | | ... | | | func, arg | | | func, arg | |
364 * function sets their "func" and "arg" fields and signals the corresponding
366 * "func" field and places an entry on the bucket cache of free entries pointed
367 * by "tqbucket_freelist" field. ALL entries on the free list should have "func"
372 * free list, sets its "func" and "arg" fields and signals a worker thread.
735 * Schedule a task specified by func and arg into the task queue entry tqe.
737 #define TQ_DO_ENQUEUE(tq, tqe, func, arg, front) { \
745 tqe->tqent_func = (func); \
754 #define TQ_ENQUEUE(tq, tqe, func, arg) \
755 TQ_DO_ENQUEUE(tq, tqe, func, arg, 0)
757 #define TQ_ENQUEUE_FRONT(tq, tqe, func, arg) \
758 TQ_DO_ENQUEUE(tq, tqe, func, arg, 1)
1058 * Return 1 if taskq already has entry for calling 'func(arg)'.
1063 taskq_ent_exists(taskq_t *tq, task_func_t func, void *arg)
1071 if ((tqe->tqent_func == func) && (tqe->tqent_arg == arg))
1077 * Dispatch a task "func(arg)" to a free entry of bucket b.
1085 taskq_bucket_dispatch(taskq_bucket_t *b, task_func_t func, void *arg)
1090 ASSERT(func != NULL);
1112 tqe->tqent_func = func;
1129 * Assumes: func != NULL
1137 taskq_dispatch(taskq_t *tq, task_func_t func, void *arg, uint_t flags)
1145 ASSERT(func != NULL);
1167 TQ_ENQUEUE_FRONT(tq, tqe, func, arg);
1169 TQ_ENQUEUE(tq, tqe, func, arg);
1188 if ((tqe = taskq_bucket_dispatch(tq->tq_buckets, func, arg))
1213 if ((tqe = taskq_bucket_dispatch(b, func, arg)) != NULL)
1231 tqe = taskq_bucket_dispatch(b, func, arg);
1257 if ((tqe = taskq_bucket_dispatch(bucket, func, arg)) != NULL)
1283 TQ_ENQUEUE(tq, tqe, func, arg);
1294 taskq_dispatch_ent(taskq_t *tq, task_func_t func, void *arg, uint_t flags,
1297 ASSERT(func != NULL);
1311 TQ_ENQUEUE_FRONT(tq, tqe, func, arg);
1313 TQ_ENQUEUE(tq, tqe, func, arg);
1684 * If a task is scheduled (func != NULL), execute it, otherwise
1755 /* If func is NULL we should be on the freelist. */
1758 /* If func is non-NULL we should be allocated */