/freebsd-10.1-release/sys/fs/nfsclient/ |
H A D | nfs_clkrpc.c | 66 struct nfsrv_descript nd; local 69 memset(&nd, 0, sizeof(nd)); 76 nd.nd_procnum = rqst->rq_proc; 77 nd.nd_flag = (ND_NFSCB | ND_NFSV4); 84 nd.nd_mrep = rqst->rq_args; 86 newnfs_realign(&nd.nd_mrep, M_WAITOK); 87 nd.nd_md = nd.nd_mrep; 88 nd 150 nfs_cbproc(struct nfsrv_descript *nd, u_int32_t xid) argument [all...] |
H A D | nfs_clrpcops.c | 131 struct nfsrv_descript nfsd, *nd = &nfsd; local 133 NFSCL_REQSTART(nd, NFSPROC_NULL, vp); 134 error = nfscl_request(nd, vp, p, cred, NULL); 135 if (nd->nd_repstat && !error) 136 error = nd->nd_repstat; 137 mbuf_freem(nd->nd_mrep); 197 struct nfsrv_descript nfsd, *nd = &nfsd; local 202 NFSCL_REQSTART(nd, NFSPROC_ACCESS, vp); 205 if (nd->nd_flag & ND_NFSV4) { 212 (void) nfsrv_putattrbit(nd, 374 struct nfsrv_descript nfsd, *nd = &nfsd; local 570 struct nfsrv_descript nfsd, *nd = &nfsd; local 633 struct nfsrv_descript nfsd, *nd = &nfsd; local 728 nfsrpc_closerpc(struct nfsrv_descript *nd, struct nfsmount *nmp, struct nfsclopen *op, struct ucred *cred, NFSPROC_T *p, int syscred) argument 771 struct nfsrv_descript nfsd, *nd = &nfsd; local 814 struct nfsrv_descript *nd = &nfsd; local 990 struct nfsrv_descript nfsd, *nd = &nfsd; local 1018 struct nfsrv_descript nfsd, *nd = &nfsd; local 1136 struct nfsrv_descript nfsd, *nd = &nfsd; local 1179 struct nfsrv_descript nfsd, *nd = &nfsd; local 1281 struct nfsrv_descript nfsd, *nd = &nfsd; local 1399 struct nfsrv_descript *nd = &nfsd; local 1574 struct nfsrv_descript *nd = &nfsd; local 1754 struct nfsrv_descript nfsd, *nd = &nfsd; local 1899 struct nfsrv_descript nfsd, *nd = &nfsd; local 1948 struct nfsrv_descript nfsd, *nd = &nfsd; local 2189 struct nfsrv_descript nfsd, *nd = &nfsd; local 2267 struct nfsrv_descript nfsd, *nd = &nfsd; local 2424 struct nfsrv_descript nfsd, *nd = &nfsd; local 2488 struct nfsrv_descript nfsd, *nd = &nfsd; local 2545 struct nfsrv_descript nfsd, *nd = &nfsd; local 2618 struct nfsrv_descript nfsd, *nd = &nfsd; local 2682 struct nfsrv_descript nfsd, *nd = &nfsd; local 3111 struct nfsrv_descript nfsd, *nd = &nfsd; local 3598 struct nfsrv_descript nfsd, *nd = &nfsd; local 3651 struct nfsrv_descript nfsd, *nd = &nfsd; local 3812 nfsrpc_lockt(struct nfsrv_descript *nd, vnode_t vp, struct nfsclclient *clp, u_int64_t off, u_int64_t len, struct flock *fl, struct ucred *cred, NFSPROC_T *p, void *id, int flags) argument 3886 nfsrpc_locku(struct nfsrv_descript *nd, struct nfsmount *nmp, struct nfscllockowner *lp, u_int64_t off, u_int64_t len, u_int32_t type, struct ucred *cred, NFSPROC_T *p, int syscred) argument 3937 nfsrpc_lock(struct nfsrv_descript *nd, struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone, int reclaim, u_int64_t off, u_int64_t len, short type, struct ucred *cred, NFSPROC_T *p, int syscred) argument 4030 struct nfsrv_descript nfsd, *nd = &nfsd; local 4108 struct nfsrv_descript nfsd, *nd = &nfsd; local 4169 struct nfsrv_descript nfsd, *nd = &nfsd; local 4209 struct nfsrv_descript *nd = &nfsd; local 4246 struct nfsrv_descript nfsd, *nd = &nfsd; local 4285 struct nfsrv_descript *nd = &nfsd; local 4353 struct nfsrv_descript *nd = &nfsd; local 4384 struct nfsrv_descript nfsd, *nd = &nfsd; local 4430 struct nfsrv_descript nfsd, *nd = &nfsd; local 4461 struct nfsrv_descript *nd = &nfsd; local 4546 struct nfsrv_descript *nd = &nfsd; local 4640 struct nfsrv_descript *nd = &nfsd; local 4665 struct nfsrv_descript *nd = &nfsd; local 4692 struct nfsrv_descript nfsd, *nd = &nfsd; local 4848 struct nfsrv_descript *nd = &nfsd; local 5008 struct nfsrv_descript nfsd, *nd = &nfsd; local 5067 struct nfsrv_descript nfsd, *nd = &nfsd; local 5392 struct nfsrv_descript *nd = &nfsd; local 5668 struct nfsrv_descript *nd = &nfsd; local 5713 struct nfsrv_descript *nd = &nfsd; local 5877 struct nfsrv_descript nfsd, *nd = &nfsd; local [all...] |
H A D | nfs_clcomsubs.c | 131 nfscl_reqstart(struct nfsrv_descript *nd, int procnum, struct nfsmount *nmp, argument 140 * First, fill in some of the fields of nd. 142 nd->nd_slotseq = NULL; 144 nd->nd_flag = ND_NFSV4 | ND_NFSCL; 146 nd->nd_flag |= ND_NFSV41; 148 nd->nd_flag = ND_NFSV3 | ND_NFSCL; 150 nd->nd_flag = ND_NFSV2 | ND_NFSCL; 151 nd->nd_procnum = procnum; 152 nd->nd_repstat = 0; 162 nd 254 nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *uiop, int siz) argument 337 nfsm_loadattr(struct nfsrv_descript *nd, struct nfsvattr *nap) argument 455 nfscl_mtofh(struct nfsrv_descript *nd, struct nfsfh **nfhpp, struct nfsvattr *nap, int *attrflagp) argument 506 nfsm_stateidtom(struct nfsrv_descript *nd, nfsv4stateid_t *stateidp, int flag) argument [all...] |
/freebsd-10.1-release/sys/fs/nfs/ |
H A D | nfsm_subs.h | 70 nfsm_build(struct nfsrv_descript *nd, int siz) argument 75 if (siz > M_TRAILINGSPACE(nd->nd_mb)) { 80 nd->nd_bpos = NFSMTOD(mb2, caddr_t); 81 nd->nd_mb->m_next = mb2; 82 nd->nd_mb = mb2; 84 retp = (void *)(nd->nd_bpos); 85 nd->nd_mb->m_len += siz; 86 nd->nd_bpos += siz; 90 #define NFSM_BUILD(a, c, s) ((a) = (c)nfsm_build(nd, (s))) 93 nfsm_dissect(struct nfsrv_descript *nd, in argument 109 nfsm_dissect_nonblock(struct nfsrv_descript *nd, int siz) argument [all...] |
H A D | nfs_commonkrpc.c | 474 newnfs_request(struct nfsrv_descript *nd, struct nfsmount *nmp, argument 500 m_freem(nd->nd_mreq); 534 if (nd->nd_procnum != NFSPROC_NULL) { 543 nd->nd_procnum != NFSPROC_NULL) { 545 nd->nd_flag |= ND_USEGSSNAME; 546 if ((nd->nd_flag & ND_USEGSSNAME) != 0) { 585 nd->nd_procnum != NFSPROC_NULL && 586 (nd->nd_flag & ND_USEGSSNAME) != 0) { 608 if (nd->nd_procnum == NFSPROC_NULL) 627 m_freem(nd [all...] |
/freebsd-10.1-release/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 74 static void nfsrvd_symlinksub(struct nfsrv_descript *nd, struct nameidata *ndp, 80 static void nfsrvd_mkdirsub(struct nfsrv_descript *nd, struct nameidata *ndp, 90 nfsrvd_access(struct nfsrv_descript *nd, __unused int isdgram, argument 99 if (nd->nd_repstat) { 100 nfsrv_postopattr(nd, 1, &nva); 105 if ((nd->nd_flag & ND_NFSV4) && 109 nd->nd_repstat = NFSERR_INVAL; 115 if (nfsvno_accchk(vp, VREAD, nd->nd_cred, exp, p, 121 if (nfsvno_accchk(vp, VWRITE, nd->nd_cred, exp, p, 127 if (nfsvno_accchk(vp, VWRITE | VAPPEND, nd 177 nfsrvd_getattr(struct nfsrv_descript *nd, int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 292 nfsrvd_setattr(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, struct nfsexstuff *exp) argument 481 nfsrvd_lookup(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 581 nfsrvd_readlink(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 624 nfsrvd_read(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, struct nfsexstuff *exp) argument 785 nfsrvd_write(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, struct nfsexstuff *exp) argument 964 nfsrvd_create(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1133 nfsrvd_mknod(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1351 nfsrvd_remove(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1433 nfsrvd_rename(struct nfsrv_descript *nd, int isdgram, vnode_t dp, vnode_t todp, NFSPROC_T *p, struct nfsexstuff *exp, struct nfsexstuff *toexp) argument 1604 nfsrvd_link(struct nfsrv_descript *nd, int isdgram, vnode_t vp, vnode_t tovp, NFSPROC_T *p, struct nfsexstuff *exp, struct nfsexstuff *toexp) argument 1708 nfsrvd_symlink(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1783 nfsrvd_symlinksub(struct nfsrv_descript *nd, struct nameidata *ndp, struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, vnode_t dirp, struct nfsvattr *dirforp, struct nfsvattr *diraftp, int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp, char *pathcp, int pathlen) argument 1828 nfsrvd_mkdir(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1916 nfsrvd_mkdirsub(struct nfsrv_descript *nd, struct nameidata *ndp, struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, vnode_t dirp, struct nfsvattr *dirforp, struct nfsvattr *diraftp, int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp) argument 1962 nfsrvd_commit(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 2009 nfsrvd_statfs(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 2067 nfsrvd_fsinfo(struct nfsrv_descript *nd, int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 2106 nfsrvd_pathconf(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 2157 nfsrvd_lock(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, struct nfsexstuff *exp) argument 2341 nfsrvd_lockt(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, struct nfsexstuff *exp) argument 2455 nfsrvd_locku(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, struct nfsexstuff *exp) argument 2553 nfsrvd_open(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, vnode_t *vpp, __unused fhandle_t *fhp, NFSPROC_T *p, struct nfsexstuff *exp) argument 2999 nfsrvd_close(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3049 nfsrvd_delegpurge(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, __unused NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3085 nfsrvd_delegreturn(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3121 nfsrvd_getfh(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3138 nfsrvd_openconfirm(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3190 nfsrvd_opendowngrade(struct nfsrv_descript *nd, __unused int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3272 nfsrvd_renew(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3312 nfsrvd_secinfo(struct nfsrv_descript *nd, int isdgram, vnode_t dp, NFSPROC_T *p, struct nfsexstuff *exp) argument 3415 nfsrvd_setclientid(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3534 nfsrvd_setclientidcfrm(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3571 nfsrvd_verify(struct nfsrv_descript *nd, int isdgram, vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3608 nfsrvd_openattr(struct nfsrv_descript *nd, __unused int isdgram, vnode_t dp, __unused vnode_t *vpp, __unused fhandle_t *fhp, __unused NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3628 nfsrvd_releaselckown(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3688 nfsrvd_exchangeid(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3815 nfsrvd_createsession(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3919 nfsrvd_sequence(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, __unused NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3962 nfsrvd_reclaimcomplete(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, __unused NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 3986 nfsrvd_destroyclientid(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 4010 nfsrvd_destroysession(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, __unused NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 4032 nfsrvd_freestateid(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, NFSPROC_T *p, __unused struct nfsexstuff *exp) argument 4056 nfsrvd_notsupp(struct nfsrv_descript *nd, __unused int isdgram, __unused vnode_t vp, __unused NFSPROC_T *p, __unused struct nfsexstuff *exp) argument [all...] |
H A D | nfs_nfsdkrpc.c | 114 struct nfsrv_descript nd; local 118 memset(&nd, 0, sizeof(nd)); 125 nd.nd_procnum = newnfs_nfsv3_procid[rqst->rq_proc]; 126 nd.nd_flag = ND_NFSV2; 133 nd.nd_procnum = rqst->rq_proc; 134 nd.nd_flag = ND_NFSV3; 142 nd.nd_procnum = rqst->rq_proc; 143 nd.nd_flag = ND_NFSV4; 151 nd 304 nfs_proc(struct nfsrv_descript *nd, u_int32_t xid, SVCXPRT *xprt, struct nfsrvcache **rpp) argument [all...] |
H A D | nfs_nfsdsocket.c | 364 static void nfsrvd_compound(struct nfsrv_descript *nd, int isdgram, 410 nfsrvd_dorpc(struct nfsrv_descript *nd, int isdgram, u_char *tag, int taglen, argument 422 if (!(nd->nd_flag & ND_NFSV4)) { 423 KASSERT(nd->nd_repstat == 0, ("nfsrvd_dorpc")); 428 if ((nd->nd_flag & ND_NFSV3) && nfsrv_mallocmget_limit()) { 429 nd->nd_repstat = NFSERR_DELAY; 432 error = nfsrv_mtofh(nd, &fh); 436 nd->nd_repstat = NFSERR_GARBAGE; 439 if (nd->nd_procnum == NFSPROC_READ || 440 nd 543 nfsrvd_compound(struct nfsrv_descript *nd, int isdgram, u_char *tag, int taglen, u_int32_t minorvers, NFSPROC_T *p) argument [all...] |
H A D | nfs_nfsdsubs.c | 1318 nfsrv_wcc(struct nfsrv_descript *nd, int before_ret, argument 1335 nfsrv_postopattr(nd, after_ret, after_nvap); 1339 nfsrv_postopattr(struct nfsrv_descript *nd, int after_ret, argument 1349 nfsrv_fillattr(nd, after_nvap); 1358 nfsrv_fillattr(struct nfsrv_descript *nd, struct nfsvattr *nvap) argument 1366 if (nd->nd_flag & ND_NFSV3) 1378 if (nd->nd_flag & ND_NFSV3) { 1418 nfsrv_mtofh(struct nfsrv_descript *nd, struct nfsrvfh *fhp) argument 1423 if (nd->nd_flag & (ND_NFSV3 | ND_NFSV4)) { 1426 if (len == 0 && nfs_pubfhset && (nd 1481 nfsd_errmap(struct nfsrv_descript *nd) argument 1537 nfsrv_checkuidgid(struct nfsrv_descript *nd, struct nfsvattr *nvap) argument 1568 nfsrv_fixattr(struct nfsrv_descript *nd, vnode_t vp, struct nfsvattr *nvap, NFSACL_T *aclp, NFSPROC_T *p, nfsattrbit_t *attrbitp, struct nfsexstuff *exp) argument 1694 nfsrv_putreferralattr(struct nfsrv_descript *nd, nfsattrbit_t *retbitp, struct nfsreferral *refp, int getattr, int *reterrp) argument 1813 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, NFSPATHLEN_T *outlenp) argument 2043 nfsd_checkrootexp(struct nfsrv_descript *nd) argument 2065 nfsd_getminorvers(struct nfsrv_descript *nd, u_char *tag, u_char **tagstrp, int *taglenp, u_int32_t *minversp) argument [all...] |
H A D | nfs_nfsdport.c | 335 nfsvno_namei(struct nfsrv_descript *nd, struct nameidata *ndp, argument 371 if (nd->nd_flag & ND_PUBLOOKUP) { 390 (nd->nd_flag & ND_NFSV4) == 0) { 442 if (!(nd->nd_flag & ND_PUBLOOKUP)) { 527 NFSEXITCODE2(error, nd); 771 nfsvno_createsub(struct nfsrv_descript *nd, struct nameidata *ndp, argument 778 error = nd->nd_repstat; 793 &nvap->na_vattr, nd->nd_cred); 805 (error = priv_check_cred(nd->nd_cred, 844 nd 1000 nfsvno_getsymlink(struct nfsrv_descript *nd, struct nfsvattr *nvap, struct thread *p, char **pathcpp, int *lenp) argument 1391 nfsvno_open(struct nfsrv_descript *nd, struct nameidata *ndp, nfsquad_t clientid, nfsv4stateid_t *stateidp, struct nfsstate *stp, int *exclusive_flagp, struct nfsvattr *nvap, int32_t *cverf, int create, NFSACL_T *aclp, nfsattrbit_t *attrbitp, struct ucred *cred, struct thread *p, struct nfsexstuff *exp, struct vnode **vpp) argument 1505 nfsvno_fillattr(struct nfsrv_descript *nd, struct mount *mp, struct vnode *vp, struct nfsvattr *nvap, fhandle_t *fhp, int rderror, nfsattrbit_t *attrbitp, struct ucred *cred, struct thread *p, int isdgram, int reterr, int supports_nfsv4acls, int at_root, uint64_t mounted_on_fileno) argument 1544 nfsrvd_readdir(struct nfsrv_descript *nd, int isdgram, struct vnode *vp, struct thread *p, struct nfsexstuff *exp) argument 1788 nfsrvd_readdirplus(struct nfsrv_descript *nd, int isdgram, struct vnode *vp, struct thread *p, struct nfsexstuff *exp) argument 2301 nfsrv_sattr(struct nfsrv_descript *nd, struct nfsvattr *nvap, nfsattrbit_t *attrbitp, NFSACL_T *aclp, struct thread *p) argument 2395 nfsv4_sattr(struct nfsrv_descript *nd, struct nfsvattr *nvap, nfsattrbit_t *attrbitp, NFSACL_T *aclp, struct thread *p) argument 2600 nfsd_excred(struct nfsrv_descript *nd, struct nfsexstuff *exp, struct ucred *credanon) argument 2729 nfsd_fhtovp(struct nfsrv_descript *nd, struct nfsrvfh *nfp, int lktype, struct vnode **vpp, struct nfsexstuff *exp, struct mount **mpp, int startwrite, struct thread *p) argument 2857 struct nameidata nd; local 3015 nfsvno_v4rootexport(struct nfsrv_descript *nd) argument 3109 struct nameidata nd; local 3223 nfsvno_testexp(struct nfsrv_descript *nd, struct nfsexstuff *exp) argument [all...] |
/freebsd-10.1-release/sys/dev/random/ |
H A D | rwfile.c | 48 struct nameidata nd; local 54 NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, filename, td); 56 error = vn_open(&nd, &flags, 0, NULL); 58 NDFREE(&nd, NDF_ONLY_PNBUF); 59 if (nd.ni_vp->v_type != VREG) 62 error = vn_rdwr(UIO_READ, nd.ni_vp, buf, length, 0, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, NOCRED, &resid, td); 63 VOP_UNLOCK(nd.ni_vp, 0); 64 vn_close(nd.ni_vp, FREAD, td->td_ucred, td); 73 struct nameidata nd; local 79 NDINIT(&nd, LOOKU [all...] |
/freebsd-10.1-release/lib/libcalendar/ |
H A D | calendar.c | 199 int nd; /* Number of days--return value */ local 218 if ((nd = ndaysji(idt)) == -1) 221 nd = (nd - 10 - (idt->y - 1600) / 100 + (idt->y - 1600) / 400); 222 else if (nd > nswitch) 223 nd -= 10; 224 return (nd); 236 week(int nd, int *y) argument 241 gdate(nd, &dt); 242 for (*y = dt.y + 1; nd < (f 252 int nd, wd; local 273 weekday(int nd) argument [all...] |
/freebsd-10.1-release/bin/ed/ |
H A D | re.c | 84 char *nd; local 87 for (nd = ibufp; *nd != delimiter && *nd != '\n'; nd++) 88 switch (*nd) { 92 if ((nd = parse_char_class(nd + 1)) == NULL) { 98 if (*++nd == '\n') { 104 len = nd [all...] |
/freebsd-10.1-release/sys/nfs/ |
H A D | nfs_diskless.c | 97 nfs_parse_options(const char *envopts, struct nfs_args *nd) argument 108 nd->flags |= NFSMNT_SOFT; 110 nd->flags |= NFSMNT_INT; 112 nd->flags |= NFSMNT_NOCONN; 114 nd->flags |= NFSMNT_NOLOCKD; 116 nd->flags |= NFSMNT_NOCTO; 118 nd->flags &= ~(NFSMNT_NFSV3 | NFSMNT_NFSV4); 120 nd->flags &= ~NFSMNT_NFSV4; 121 nd->flags |= NFSMNT_NFSV3; 123 nd 164 struct nfs_diskless *nd = &nfs_diskless; local [all...] |
/freebsd-10.1-release/contrib/ipfilter/ |
H A D | mlo_ipl.c | 141 struct nameidata nd; local 147 NDINIT(&nd, DELETE, LOCKPARENT | LOCKLEAF, UIO_SYSSPACE, 150 NDINIT(&nd, DELETE, LOCKPARENT, UIO_SYSSPACE, name, curproc); 152 if ((error = namei(&nd))) 154 VOP_LEASE(nd.ni_vp, curproc, curproc->p_ucred, LEASE_WRITE); 156 VOP_LOCK(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY, curproc); 157 VOP_LEASE(nd.ni_dvp, curproc, curproc->p_ucred, LEASE_WRITE); 159 (void)uvm_vnp_uncache(nd.ni_vp); 161 VOP_LEASE(nd.ni_dvp, curproc, curproc->p_ucred, LEASE_WRITE); 162 VOP_LEASE(nd 194 struct nameidata nd; local [all...] |
H A D | mln_ipl.c | 176 struct nameidata nd; local 183 NDINIT(&nd, DELETE, LOCKPARENT|LOCKLEAF, UIO_SYSSPACE, 186 NDINIT(&nd, DELETE, LOCKPARENT|LOCKLEAF, UIO_SYSSPACE, 190 NDINIT(&nd, DELETE, LOCKPARENT|LOCKLEAF, UIO_SYSSPACE, 194 NDINIT(&nd, DELETE, LOCKPARENT, UIO_SYSSPACE, name, curproc); 196 if ((error = namei(&nd))) 201 VOP_LEASE(nd.ni_dvp, curlwp, curlwp->l_cred, LEASE_WRITE); 204 VOP_LEASE(nd.ni_dvp, curlwp, curlwp->l_proc->p_ucred, LEASE_WRITE); 207 VOP_LEASE(nd.ni_dvp, curproc, curproc->p_ucred, LEASE_WRITE); 210 vn_lock(nd 260 struct nameidata nd; local [all...] |
/freebsd-10.1-release/sbin/ifconfig/ |
H A D | af_nd6.c | 73 struct in6_ndireq nd; local 76 memset(&nd, 0, sizeof(nd)); 77 strncpy(nd.ifname, ifr.ifr_name, sizeof(nd.ifname)); 78 error = ioctl(s, SIOCGIFINFO_IN6, &nd); 84 nd.ndi.flags &= ~(-d); 86 nd.ndi.flags |= d; 87 error = ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd); 143 struct in6_ndireq nd; local [all...] |
/freebsd-10.1-release/sys/kern/ |
H A D | vfs_extattr.c | 69 struct nameidata nd; local 91 NDINIT(&nd, LOOKUP, FOLLOW | AUDITVNODE2, 93 error = namei(&nd); 96 filename_vp = nd.ni_vp; 97 NDFREE(&nd, NDF_NO_VP_RELE); 101 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | AUDITVNODE1, 103 error = namei(&nd); 106 mp = nd.ni_vp->v_mount; 109 NDFREE(&nd, 0); 113 VOP_UNLOCK(nd 252 struct nameidata nd; local 287 struct nameidata nd; local 427 struct nameidata nd; local 461 struct nameidata nd; local 568 struct nameidata nd; local 598 struct nameidata nd; local 722 struct nameidata nd; local 749 struct nameidata nd; local [all...] |
H A D | vfs_acl.c | 329 struct nameidata nd; local 332 NDINIT(&nd, LOOKUP, FOLLOW, UIO_USERSPACE, uap->path, td); 333 error = namei(&nd); 335 error = vacl_get_acl(td, nd.ni_vp, uap->type, uap->aclp); 336 NDFREE(&nd, 0); 347 struct nameidata nd; local 350 NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, uap->path, td); 351 error = namei(&nd); 353 error = vacl_get_acl(td, nd.ni_vp, uap->type, uap->aclp); 354 NDFREE(&nd, 365 struct nameidata nd; local 383 struct nameidata nd; local 439 struct nameidata nd; local 457 struct nameidata nd; local 494 struct nameidata nd; local 512 struct nameidata nd; local [all...] |
H A D | vfs_syscalls.c | 184 struct nameidata nd; local 191 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | AUDITVNODE1, UIO_USERSPACE, 193 if ((error = namei(&nd)) != 0) 195 NDFREE(&nd, NDF_ONLY_PNBUF); 196 mp = nd.ni_vp->v_mount; 198 vput(nd.ni_vp); 294 struct nameidata nd; local 297 NDINIT(&nd, LOOKUP, FOLLOW | LOCKSHARED | LOCKLEAF | AUDITVNODE1, 299 error = namei(&nd); 302 mp = nd 795 struct nameidata nd; local 874 struct nameidata nd; local 1056 struct nameidata nd; local 1265 struct nameidata nd; local 1408 struct nameidata nd; local 1551 struct nameidata nd; local 1664 struct nameidata nd; local 1734 struct nameidata nd; local 1824 struct nameidata nd; local 2055 struct nameidata nd; local 2273 struct nameidata nd; local 2466 struct nameidata nd; local 2539 struct nameidata nd; local 2693 struct nameidata nd; local 2851 struct nameidata nd; local 2983 struct nameidata nd; local 3190 struct nameidata nd; local 3235 struct nameidata nd; local 3327 struct nameidata nd; local 3679 struct nameidata nd; local 3765 struct nameidata nd; local 4158 struct nameidata nd; local 4241 struct nameidata nd; local 4276 struct nameidata nd; local [all...] |
/freebsd-10.1-release/contrib/llvm/include/llvm/CodeGen/PBQP/Heuristics/ |
H A D | Briggs.h | 137 NodeData &nd = getHeuristicNodeData(nId); local 139 nd.isHeuristic = true; 140 if (nd.isAllocable) { 141 nd.rnaItr = rnAllocableList.insert(rnAllocableList.end(), nId); 143 nd.rnuItr = rnUnallocableList.insert(rnUnallocableList.end(), nId); 260 NodeData &nd =getHeuristicNodeData(nId); local 264 if (!nd.isHeuristic) 272 bool ndWasAllocable = nd.isAllocable; 278 nd.isHeuristic = false; 281 rnAllocableList.erase(nd 360 NodeData &nd = getHeuristicNodeData(nId); local 387 NodeData &nd = getHeuristicNodeData(nId); local 406 NodeData &nd = getHeuristicNodeData(nId); local 412 NodeData &nd = getHeuristicNodeData(nId); local [all...] |
/freebsd-10.1-release/sys/nfsserver/ |
H A D | nfs_serv.c | 65 * if an error is returned, and may garbage up nd.ni_dvp even if no 155 ndclear(struct nameidata *nd) argument 158 nd->ni_cnd.cn_flags = 0; 159 nd->ni_vp = NULL; 160 nd->ni_dvp = NULL; 161 nd->ni_startdir = NULL; 162 nd->ni_strictrelative = 0; 501 struct nameidata nd, ind, *ndp = &nd; local 512 ndclear(&nd); 1190 struct nameidata nd; local 1475 struct nameidata nd; local 1656 struct nameidata nd; local 1987 struct nameidata nd; local 2128 struct nameidata nd; local 2302 struct nameidata nd; local 2465 struct nameidata nd; local [all...] |
H A D | nfs_srvkrpc.c | 120 int32_t (*nfsrv3_procs[NFS_NPROCS])(struct nfsrv_descript *nd, 209 nfs_rephead(int siz, struct nfsrv_descript *nd, int err, argument 220 nd->nd_repstat = err; 221 if (err && (nd->nd_flag & ND_NFSV3) == 0) /* XXX recheck */ 239 *tl = txdr_unsigned(nfsrv_errmap(nd, err)); 256 int32_t (*proc)(struct nfsrv_descript *nd, struct nfssvc_sock *slp, 259 struct nfsrv_descript nd; local 292 memset(&nd, 0, sizeof(nd)); 293 nd [all...] |
/freebsd-10.1-release/sys/dev/mem/ |
H A D | memutil.c | 66 int nd; local 70 nd = *arg; 72 if (nd == 0) 75 bcopy(mem_range_softc.mr_desc, mrd, nd * sizeof(*mrd));
|
/freebsd-10.1-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_lookup.c | 49 struct nameidata nd; local 57 NDINIT_ATVP(&nd, LOOKUP, LOCKLEAF | follow, seg, dirname, 59 error = namei(&nd); 60 *compvpp = nd.ni_vp; 61 NDFREE(&nd, NDF_ONLY_PNBUF);
|