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_struct associated with the process through an ioctl call from the process so I have all the information contained in that at my disposal.
Note: the process I’m looking for is running in user space
Does this help: