aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-05 15:08:03 -0800
committerBrian Behlendorf <[email protected]>2009-01-05 15:08:03 -0800
commite9cb2b4f6458220c8b2ff1317caa022ac2ead3d4 (patch)
tree6b2f6b27ce81f53e37c3b033b01ec04e7f240f04 /include
parent8a2b328b18f52ff411ba6b223a3b11461c841135 (diff)
Add system taskq support
Diffstat (limited to 'include')
-rw-r--r--include/sys/taskq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/taskq.h b/include/sys/taskq.h
index 7a0be048c..0e78ea123 100644
--- a/include/sys/taskq.h
+++ b/include/sys/taskq.h
@@ -81,12 +81,18 @@ typedef struct taskq {
wait_queue_head_t tq_wait_waitq; /* wait waitq */
} taskq_t;
+/* Global system-wide dynamic task queue available for all consumers */
+extern taskq_t *system_taskq;
+
extern taskqid_t __taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
extern taskq_t *__taskq_create(const char *, int, pri_t, int, int, uint_t);
extern void __taskq_destroy(taskq_t *);
extern void __taskq_wait(taskq_t *);
extern int __taskq_member(taskq_t *, void *);
+int spl_taskq_init(void);
+void spl_taskq_fini(void);
+
#define taskq_member(tq, t) __taskq_member(tq, t)
#define taskq_wait_id(tq, id) __taskq_wait_id(tq, id)
#define taskq_wait(tq) __taskq_wait(tq)