attach_pid() with struct pid parameter