Hello
there are mechanisms for a kernel module to known when the PID numbering restarts?
Thanks in advance.
struct pid is refcounted, just use get_pid(pid) to get a reference to a pid and be sure it stays valid until put_pid(pid), even if the number gets reused.
refcounted
struct pid is refcounted, just use get_pid(pid) to get a reference to a pid and be sure it stays valid until put_pid(pid), even if the number gets reused.