summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-09-09 01:43:57 +0200
committerRichard Braun <rbraun@sceen.net>2014-09-09 01:43:57 +0200
commit0f178b0fd82ae1312a6d20b11c8bcb9980a8ac08 (patch)
treee8ef18c8d17f055a9ab7a2905ef19d7731b9dc35 /kern/thread.h
parentd98a09eb52fb4d0cdc6fc9a523fde5178f183315 (diff)
kern/task: make task_info report scheduling properties
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index d1c5f53a..5206699a 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -347,6 +347,18 @@ void thread_schedule_intr(void);
*/
void thread_tick_intr(void);
+/*
+ * Return a string representation of the scheduling class of a thread.
+ */
+const char * thread_schedclass_to_str(const struct thread *thread);
+
+/*
+ * Return the priority of a thread.
+ *
+ * If the scheduling class doesn't use a priority, return 0.
+ */
+unsigned int thread_schedprio(const struct thread *thread);
+
static inline struct thread *
thread_from_tcb(struct tcb *tcb)
{