How can I check if a process is still running from the kernel in c?

前端 未结 1 1588
情歌与酒
情歌与酒 2021-01-25 18:41

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

1条回答
  •  逝去的感伤
    2021-01-25 19:06

    Does this help:

    struct task_struct { 
       volatile long state;    /* -1 unrunnable, 0 runnable, >0 stopped */
       ...
    }
    

    0 讨论(0)
提交回复
热议问题