summaryrefslogtreecommitdiffstats
path: root/tsk/tasking.h
diff options
context:
space:
mode:
Diffstat (limited to 'tsk/tasking.h')
-rw-r--r--tsk/tasking.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/tsk/tasking.h b/tsk/tasking.h
index d217171..b322682 100644
--- a/tsk/tasking.h
+++ b/tsk/tasking.h
@@ -6,20 +6,22 @@
typedef size_t tid_t;
-struct Thread
+struct Task
{
- struct Thread *next;
+ struct Task *next;
tid_t id;
uintptr_t kbp;
size_t perm;
};
-extern struct Thread *thread_current;
+extern struct Task *task_current;
void tasking_setup(void);
-struct Thread *thread_new(struct Thread *parent);
-struct Thread *thread_get(tid_t id);
-void thread_perm_release(struct Thread *thread, size_t mask);
+struct Task *task_new(struct Task *parent);
+struct Task *task_get(tid_t id);
+
+void *task_get_pd(struct Task *task);
+void task_perm_release(struct Task *task, size_t mask);
#endif