diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-05 20:34:16 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-05 20:34:16 +0200 |
commit | 51cb42fd1f221736b470a85b423c41eac5865373 (patch) | |
tree | aa974ec683d9b0550b3cd66a49aef7011f0569f2 | |
parent | c7efc68f95d5692d2bfdcb3ce698b28a306c74b5 (diff) |
kern/thread: new thread_get_tcb function
-rw-r--r-- | kern/thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h index 07973431..2d28aa82 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -392,6 +392,12 @@ thread_real_global_priority(const struct thread *thread) */ const char * thread_sched_class_to_str(unsigned char sched_class); +static inline struct tcb * +thread_get_tcb(struct thread *thread) +{ + return &thread->tcb; +} + static inline struct thread * thread_from_tcb(struct tcb *tcb) { |