最近出现了一些bug,通过cat /proc/xenomai/sched/threads
看不懂线程状态指的是啥,查看源码特此记录。
源码位置include/cobalt/uapi/kernel/thread.h
* 'S' -> Forcibly suspended.
* 'w'/'W' -> Waiting for a resource, with or without timeout.
* 'D' -> Delayed (without any other wait condition).
* 'R' -> Runnable.
* 'U' -> Unstarted or dormant.
* 'X' -> Relaxed shadow.
* 'H' -> Held in emergency.
* 'b' -> Priority boost undergoing.
* 'T' -> Ptraced and stopped.
* 'l' -> Locks scheduler.
* 'r' -> Undergoes round-robin.
* 't' -> Runtime mode errors notified.
* 'L' -> Lock breaks trapped.
* 's' -> Ptraced, stopped synchronously.