summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/task.h4
-rw-r--r--sys/sys/workq.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/sys/task.h b/sys/sys/task.h
index 350fc8171bc..7319ec37fee 100644
--- a/sys/sys/task.h
+++ b/sys/sys/task.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: task.h,v 1.3 2013/10/30 02:11:32 dlg Exp $ */
+/* $OpenBSD: task.h,v 1.4 2013/10/31 04:33:32 deraadt Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -31,6 +31,7 @@ struct task {
unsigned int t_flags;
};
+#ifdef _KERNEL
extern struct taskq *const systq;
struct taskq *taskq_create(const char *, unsigned int, int);
@@ -40,5 +41,6 @@ void task_set(struct task *, void (*)(void *, void *),
void *, void *);
int task_add(struct taskq *, struct task *);
int task_del(struct taskq *, struct task *);
+#endif /* _KERNEL */
#endif /* _SYS_TASKQ_H_ */
diff --git a/sys/sys/workq.h b/sys/sys/workq.h
index dc7289a5af8..287a6e40b02 100644
--- a/sys/sys/workq.h
+++ b/sys/sys/workq.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: workq.h,v 1.6 2009/09/02 14:05:05 dlg Exp $ */
+/* $OpenBSD: workq.h,v 1.7 2013/10/31 04:33:32 deraadt Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -36,6 +36,7 @@ struct workq_task {
#define WQ_WAITOK (1<<0)
#define WQ_MPSAFE (1<<1)
+#ifdef _KERNEL
struct workq;
struct workq *workq_create(const char *, int, int);
@@ -44,5 +45,6 @@ int workq_add_task(struct workq *, int /* flags */, workq_fn,
void workq_queue_task(struct workq *, struct workq_task *,
int /* flags */, workq_fn, void *, void *);
void workq_destroy(struct workq *);
+#endif /* _KERNEL */
#endif /* _SYS_WORKQ_H_ */