ktrcanset
if (ktrcanset(curthread, p)) {
if (!ktrcanset(td, p))
static int ktrcanset (struct thread *,struct proc *);