thread_link
thread_link(newtd, p);
thread_link(td, p);
void thread_link(struct thread *td, struct proc *p);