how to determine if a process is dead or not in kernel mode programming
I have a requirement in kermel module programming: I want to find a way to determine if a process is dead or not.
sys_getpgid() could fulfill this requirement, but the unique parameter of syscall had been changed to struct pt_regs point since kernel 4.17, and I couldn't obtain struct pt_regs point when invoke sys_getpgid(), I only have one parameter pid.
How to determine if a process is dead or not by the pid?
Does any api function could fulfill this requirement?