I'm trying to track the life span of a user thread in a kernel module. I want to detect when a user thread is no longer executing (exit()
has been called). How would I go about doing that? I'm digging into the kernel source code as I write this, but there's a lot to take in!
I did find task_struct.vfork_done
, and it looks like something I can hook into. Am I on the right track?