• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/nfs/

Lines Matching refs:nd

126 extern int (*nfsrv_procs[NFS_NPROCS])(struct nfsrv_descript *nd,
386 struct nameidata nd;
406 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | AUDITVNPATH1,
408 error = namei(&nd);
411 nameidone(&nd);
413 vp = nd.ni_vp;
839 struct nfsrv_descript *nd = NULL;
947 error = nfsrv_dorec(slp, nfsd, &nd);
969 if (nd) {
970 nfsm_chain_cleanup(&nd->nd_nmreq);
971 if (nd->nd_nam2)
972 mbuf_freem(nd->nd_nam2);
973 if (IS_VALID_CRED(nd->nd_cr))
974 kauth_cred_unref(&nd->nd_cr);
975 FREE_ZONE(nd, sizeof(*nd), M_NFSRVDESC);
976 nd = NULL;
986 if (nd) {
987 microuptime(&nd->nd_starttime);
988 if (nd->nd_nam2)
989 nd->nd_nam = nd->nd_nam2;
991 nd->nd_nam = slp->ns_nam;
993 cacherep = nfsrv_getcache(nd, slp, &mrep);
998 struct sockaddr *nam = mbuf_data(nd->nd_nam);
1004 nd->nd_procnum != NFSPROC_NULL) {
1006 nd->nd_procnum = NFSPROC_NOOP;
1007 nd->nd_repstat = (NFSERR_AUTHERR | AUTH_TOOWEAK);
1024 if (nd && (nd->nd_vers == NFS_VER3))
1030 if (writes_todo || ((nd->nd_procnum == NFSPROC_WRITE) && (procrastinate > 0)))
1031 error = nfsrv_writegather(&nd, slp, &context, &mrep);
1033 error = (*(nfsrv_procs[nd->nd_procnum]))(nd, slp, &context, &mrep);
1046 nd->nd_procnum, error);
1053 nfsrv_updatecache(nd, FALSE, mrep);
1054 if (nd->nd_nam2) {
1055 mbuf_freem(nd->nd_nam2);
1056 nd->nd_nam2 = NULL;
1060 OSAddAtomic(1, (SInt32*)&nfsstats.srvrpccnt[nd->nd_procnum]);
1061 nfsrv_updatecache(nd, TRUE, mrep);
1065 if (nd->nd_gss_mb != NULL) { // It's RPCSEC_GSS
1069 error = nfs_gss_svc_protect_reply(nd, mrep);
1105 error = nfsrv_send(slp, nd->nd_nam2, m);
1114 if (nd->nd_nam2) {
1115 mbuf_freem(nd->nd_nam2);
1116 nd->nd_nam2 = NULL;
1124 nfsm_chain_cleanup(&nd->nd_nmreq);
1125 if (IS_VALID_CRED(nd->nd_cr))
1126 kauth_cred_unref(&nd->nd_cr);
1127 FREE_ZONE(nd, sizeof(*nd), M_NFSRVDESC);
1134 mbuf_freem(nd->nd_nam2);
1135 nd->nd_nam2 = NULL;
1139 if (nd) {
1140 nfsm_chain_cleanup(&nd->nd_nmreq);
1141 if (nd->nd_nam2)
1142 mbuf_freem(nd->nd_nam2);
1143 if (IS_VALID_CRED(nd->nd_cr))
1144 kauth_cred_unref(&nd->nd_cr);
1145 FREE_ZONE(nd, sizeof(*nd), M_NFSRVDESC);
1146 nd = NULL;
1165 nd = NULL;
1168 error = nfsrv_dorec(slp, nfsd, &nd);
1175 if (!nd) {