diff options
author | Richard Braun <rbraun@sceen.net> | 2014-09-09 01:43:57 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-09-09 01:43:57 +0200 |
commit | 0f178b0fd82ae1312a6d20b11c8bcb9980a8ac08 (patch) | |
tree | e8ef18c8d17f055a9ab7a2905ef19d7731b9dc35 /kern/thread.h | |
parent | d98a09eb52fb4d0cdc6fc9a523fde5178f183315 (diff) |
kern/task: make task_info report scheduling properties
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 12 |
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) { |