p_canwait
if (p_canwait(td, p)) {
error = p_canwait(td, p);
int p_canwait(struct thread *td, struct proc *p);