Lines Matching defs:td
111 nlm_msg(struct thread *td, const char *server, const char *msg, int error)
115 p = td ? td->td_proc : NULL;
131 nlm_down(struct nlm_feedback_arg *nf, struct thread *td,
149 nlm_msg(td, nmp->nm_mountp->mnt_stat.f_mntfromname, msg, error);
153 nlm_up(struct nlm_feedback_arg *nf, struct thread *td,
161 nlm_msg(td, nmp->nm_mountp->mnt_stat.f_mntfromname, msg, 0);
177 struct thread *td = curthread;
183 nlm_down(nf, td, "lockd not responding", 0);
187 nlm_up(nf, td, "lockd is alive again");
200 struct thread *td = curthread;
230 nmp->nm_vinvalbuf(vp, V_SAVE, td, 1);
251 cred = td->td_ucred;
252 td->td_ucred = vp->v_mount->mnt_cred;
253 crhold(td->td_ucred);
380 cred1 = td->td_ucred;
381 td->td_ucred = cred;
399 * Set the creds of td to the creds of the given lock's owner. The new
401 * responsible for calling crfree and restoring td's original creds.
404 nlm_set_creds_for_lock(struct thread *td, struct flock *fl)
446 cred = crhold(td->td_ucred);
449 td->td_ucred = cred;
456 struct thread *td = curthread;
463 oldcred = td->td_ucred;
464 nlm_set_creds_for_lock(td, &newfl);
469 crfree(td->td_ucred);
470 td->td_ucred = oldcred;
493 struct thread *td = curthread;
510 oldcred = td->td_ucred;
511 nlm_set_creds_for_lock(td, fl);
516 crfree(td->td_ucred);
517 td->td_ucred = oldcred;