diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
commit | b2ad7d862388558556288877a65f2797528168f4 (patch) | |
tree | 4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/task.h | |
parent | cacd797c0c1825301f21aab18a7ce2c410d14535 (diff) |
Switch to initialization operations
Diffstat (limited to 'kern/task.h')
-rw-r--r-- | kern/task.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/kern/task.h b/kern/task.h index 591e8d7e..1711fbee 100644 --- a/kern/task.h +++ b/kern/task.h @@ -19,6 +19,7 @@ #define _KERN_TASK_H #include <kern/atomic.h> +#include <kern/init.h> #include <kern/list.h> #include <kern/spinlock.h> #include <kern/thread.h> @@ -75,11 +76,6 @@ task_get_vm_map(const struct task *task) } /* - * Initialize the task module. - */ -void task_setup(void); - -/* * Create a task. */ int task_create(struct task **taskp, const char *name); @@ -119,4 +115,11 @@ struct thread * task_lookup_thread(struct task *task, const char *name); */ void task_info(struct task *task); +/* + * This init operation provides : + * - task creation + * - module fully initialized + */ +INIT_OP_DECLARE(task_setup); + #endif /* _KERN_TASK_H */ |