All the answers I\'ve seen so far appear to just be checking within user space. I need a way to check from kernel space specifically within a device driver. I get the task_struc
Does this help:
struct task_struct { volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ ... }