Home
last modified time | relevance | path

Searched refs:nd (Results 1 – 25 of 848) sorted by relevance

12345678910>>...34

/netbsd/sys/fs/nfs/server/
H A Dnfs_nfsdserv.c246 nd->nd_repstat = nfsrv_checkgetattr(nd, vp, in nfsrvd_getattr()
358 nd->nd_repstat = nfsrv_checkuidgid(nd, &nva); in nfsrvd_setattr()
381 if (!nd->nd_repstat && (nd->nd_flag & ND_NFSV4)) in nfsrvd_setattr()
560 if (!(nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) in nfsrvd_lookup()
726 if ((nd->nd_flag & ND_NFSV4) && !nd->nd_repstat) in nfsrvd_read()
923 nd->nd_md, nd->nd_dpos, nd->nd_cred, p); in nfsrvd_write()
1239 nd->nd_repstat = nfsrv_checkuidgid(nd, &nva); in nfsrvd_mknod()
1522 nd->nd_cred->cr_uid = nd->nd_saveduid; in nfsrvd_rename()
1582 nd->nd_flag, nd->nd_cred, p); in nfsrvd_rename()
1807 !(nd->nd_flag & ND_NFSV2), nd->nd_saveduid, nd->nd_cred, p, exp); in nfsrvd_symlinksub()
[all …]
H A Dnfs_nfsdkrpc.c126 memset(&nd, 0, sizeof(nd)); in nfssvc_program()
163 nd.nd_md = nd.nd_mrep; in nfssvc_program()
164 nd.nd_dpos = mtod(nd.nd_md, caddr_t); in nfssvc_program()
167 nd.nd_mreq = NULL; in nfssvc_program()
168 nd.nd_cred = NULL; in nfssvc_program()
257 nd.nd_repstat = nfsvno_v4rootexport(&nd); in nfssvc_program()
274 NFSMGET(nd.nd_mreq); in nfssvc_program()
282 crfree(nd.nd_cred); in nfssvc_program()
348 if ((nd->nd_flag & ND_NFSV2) && nd->nd_nam2 != NULL && in nfs_proc()
396 nd->nd_slotid, nd->nd_repstat, &m); in nfs_proc()
[all …]
H A Dnfs_nfsdsocket.c532 if (!(nd->nd_flag & ND_NFSV4) && nfsrv_nonidempotent[nd->nd_procnum]) in nfsrvd_dorpc()
535 nfsrvd_rephead(nd); in nfsrvd_dorpc()
541 if (nd->nd_repstat && (nd->nd_flag & ND_NFSV2)) { in nfsrvd_dorpc()
542 *nd->nd_errp = nfsd_errmap(nd); in nfsrvd_dorpc()
568 error = (*(nfsrv3_procs1[nd->nd_procnum]))(nd, isdgram, in nfsrvd_dorpc()
571 error = (*(nfsrv3_procs2[nd->nd_procnum]))(nd, isdgram, in nfsrvd_dorpc()
574 error = (*(nfsrv3_procs0[nd->nd_procnum]))(nd, isdgram, in nfsrvd_dorpc()
588 *nd->nd_errp = nfsd_errmap(nd); in nfsrvd_dorpc()
593 if (nd->nd_repstat && (nd->nd_flag & ND_SAVEREPLY) && in nfsrvd_dorpc()
745 if (nd->nd_repstat) in nfsrvd_compound()
[all …]
H A Dnfs_nfsdport.c1426 stateidp, stp, NULL, nd, p, nd->nd_repstat); in nfsvno_open()
1474 stateidp, stp, vp, nd, p, nd->nd_repstat); in nfsvno_open()
1484 stateidp, stp, vp, nd, p, nd->nd_repstat); in nfsvno_open()
1609 nd->nd_repstat = getret = nfsvno_getattr(vp, &at, nd->nd_cred, in nfsrvd_readdir()
2052 mb0 = nd->nd_mb; in nfsrvd_readdirplus()
2073 mb1 = nd->nd_mb; in nfsrvd_readdirplus()
2522 nd->nd_repstat = nfsv4_strtouid(nd, cp, j, &uid, in nfsv4_sattr()
2549 nd->nd_repstat = nfsv4_strtogid(nd, cp, j, &gid, in nfsv4_sattr()
2690 nd->nd_cred = nfsrv_getgrpscred(nd->nd_cred); in nfsd_excred()
2848 nd->nd_saveduid = nd->nd_cred->cr_uid; in nfsd_fhtovp()
[all …]
H A Dnfs_nfsdsubs.c1489 NFSEXITCODE2(error, nd); in nfsrv_mtofh()
1506 if (!nd->nd_repstat) in nfsd_errmap()
1521 nd->nd_repstat = nfsrv_isannfserr(nd->nd_repstat); in nfsd_errmap()
1582 NFSEXITCODE2(error, nd); in nfsrv_checkuidgid()
1671 NFSEXITCODE2(0, nd); in nfsrv_fixattr()
1854 if ((nd->nd_flag & ND_NFSV4) && nd->nd_procnum == NFSV4OP_LOOKUPP) { in nfsrv_parsename()
1879 fromcp = nd->nd_dpos; in nfsrv_parsename()
1880 md = nd->nd_md; in nfsrv_parsename()
1994 nd->nd_md = md; in nfsrv_parsename()
1999 nd->nd_dpos += i; in nfsrv_parsename()
[all …]
H A Dnfs_nfsdcache.c360 NFSEXITCODE2(0, nd); in nfsrvd_getcache()
447 nd->nd_rp = newrp; in nfsrc_getudp()
451 NFSEXITCODE2(0, nd); in nfsrc_getudp()
466 rp = nd->nd_rp; in nfsrvd_updatecache()
469 nd->nd_rp = NULL; in nfsrvd_updatecache()
487 nd->nd_repstat = 0; in nfsrvd_updatecache()
488 if (nd->nd_mreq) in nfsrvd_updatecache()
552 NFSEXITCODE2(0, nd); in nfsrvd_updatecache()
697 nfsrvd_rephead(nd); in nfsrc_gettcp()
727 nd->nd_rp = newrp; in nfsrc_gettcp()
[all …]
/netbsd/sys/fs/nfs/client/
H A Dnfs_clkrpc.c73 memset(&nd, 0, sizeof(nd)); in nfscb_program()
91 nd.nd_md = nd.nd_mrep; in nfscb_program()
92 nd.nd_dpos = mtod(nd.nd_md, caddr_t); in nfscb_program()
95 nd.nd_mreq = NULL; in nfscb_program()
96 nd.nd_cred = NULL; in nfscb_program()
103 m_freem(nd.nd_mrep); in nfscb_program()
115 NFSMGET(nd.nd_mreq); in nfscb_program()
120 m_freem(nd.nd_mrep); in nfscb_program()
123 crfree(nd.nd_cred); in nfscb_program()
127 m_freem(nd.nd_mreq); in nfscb_program()
[all …]
H A Dnfs_clrpcops.c233 if (!nd->nd_repstat) { in nfsrpc_accessrpc()
1016 if (!nd->nd_repstat) in nfsrpc_getattr()
1176 if (!(nd->nd_flag & ND_NFSV3) && !nd->nd_repstat && !error) in nfsrpc_setattrrpc()
1427 nd->nd_mrep = NULL; in nfsrpc_readrpc()
1453 } else if (!nd->nd_repstat && (nd->nd_flag & ND_NFSV2)) { in nfsrpc_readrpc()
1475 nd->nd_mrep = NULL; in nfsrpc_readrpc()
1743 nd->nd_mrep = NULL; in nfsrpc_writerpc()
2738 nd->nd_mrep = NULL; in nfsrpc_readdir()
3163 nd->nd_mrep = NULL; in nfsrpc_readdirplus()
4359 nd->nd_repstat = nfsrv_mtostr(nd, nmp->nm_fh, len); in nfsrpc_getdirpath()
[all …]
H A Dnfs_clcomsubs.c144 nd->nd_slotseq = NULL; in nfscl_reqstart()
148 nd->nd_flag |= ND_NFSV41; in nfscl_reqstart()
153 nd->nd_procnum = procnum; in nfscl_reqstart()
154 nd->nd_repstat = 0; in nfscl_reqstart()
164 nd->nd_mreq = nd->nd_mb = mb; in nfscl_reqstart()
170 if (nd->nd_flag & ND_NFSV4) { in nfscl_reqstart()
208 nfsv4_setsequence(nmp, nd, in nfscl_reqstart()
271 mp = mp2 = nd->nd_mb; in nfsm_uiombuf()
327 nd->nd_bpos = cp; in nfsm_uiombuf()
330 nd->nd_mb = mp; in nfsm_uiombuf()
[all …]
/netbsd/sys/fs/nfs/common/
H A Dnfsm_subs.h73 nd->nd_mb->m_next = mb2; in nfsm_build()
74 nd->nd_mb = mb2; in nfsm_build()
76 retp = (void *)(nd->nd_bpos); in nfsm_build()
77 nd->nd_mb->m_len += siz; in nfsm_build()
78 nd->nd_bpos += siz; in nfsm_build()
90 tt1 = NFSMTOD(nd->nd_md, char *) + nd->nd_md->m_len - nd->nd_dpos; in nfsm_dissect()
92 retp = (void *)nd->nd_dpos; in nfsm_dissect()
93 nd->nd_dpos += siz; in nfsm_dissect()
106 tt1 = NFSMTOD(nd->nd_md, char *) + nd->nd_md->m_len - nd->nd_dpos; in nfsm_dissect_nonblock()
108 retp = (void *)nd->nd_dpos; in nfsm_dissect_nonblock()
[all …]
H A Dnfs_diskless.c116 nd->flags |= NFSMNT_SOFT; in nfs_parse_options()
118 nd->flags |= NFSMNT_INT; in nfs_parse_options()
120 nd->flags |= NFSMNT_NOCONN; in nfs_parse_options()
124 nd->flags |= NFSMNT_NOCTO; in nfs_parse_options()
128 nd->flags &= ~NFSMNT_NFSV4; in nfs_parse_options()
129 nd->flags |= NFSMNT_NFSV3; in nfs_parse_options()
131 nd->sotype = SOCK_STREAM; in nfs_parse_options()
133 nd->sotype = SOCK_DGRAM; in nfs_parse_options()
137 nd->rsize = (int) v; in nfs_parse_options()
143 nd->wsize = (int) v; in nfs_parse_options()
[all …]
H A Dnfs_commonkrpc.c506 m_freem(nd->nd_mreq); in newnfs_request()
633 m_freem(nd->nd_mreq); in newnfs_request()
748 nd->nd_mrep = NULL; in newnfs_request()
751 nd->nd_mreq, &nd->nd_mrep, timo, sep->nfsess_xprt); in newnfs_request()
754 nd->nd_mreq, &nd->nd_mrep, timo); in newnfs_request()
787 m_freem(nd->nd_mreq); in newnfs_request()
806 nd->nd_md = nd->nd_mrep; in newnfs_request()
807 nd->nd_dpos = NFSMTOD(nd->nd_md, caddr_t); in newnfs_request()
808 nd->nd_repstat = 0; in newnfs_request()
914 nd->nd_mrep = NULL; in newnfs_request()
[all …]
H A Dnfs_commonsubs.c210 mp = nd->nd_md; in nfsm_mbufuio()
296 left = NFSMTOD(nd->nd_md, caddr_t) + mbuf_len(nd->nd_md) - nd->nd_dpos; in nfsm_dissct()
298 nd->nd_md = mbuf_next(nd->nd_md); in nfsm_dissct()
302 nd->nd_dpos = NFSMTOD(nd->nd_md, caddr_t); in nfsm_dissct()
317 mbuf_setlen(nd->nd_md, mbuf_len(nd->nd_md) - left); in nfsm_dissct()
369 left = NFSMTOD(nd->nd_md, caddr_t) + mbuf_len(nd->nd_md) - in nfsm_advance()
377 nd->nd_md = mbuf_next(nd->nd_md); in nfsm_advance()
383 nd->nd_dpos = NFSMTOD(nd->nd_md, caddr_t); in nfsm_advance()
607 if (nd->nd_mrep != nd->nd_md) {
617 m = nd->nd_md;
[all …]
/netbsd/sys/nfs/
H A Dnfs_bootstatic.c68 struct ifnet *ifp = nd->nd_ifp; in nfs_bootstatic()
73 flags = (*nfs_bootstatic_callback)(nd); in nfs_bootstatic()
83 nd->nd_myip.s_addr = inet_addr(NFS_BOOTSTATIC_MYIP); in nfs_bootstatic()
114 if (strchr(nd->nd_root.ndm_host, ':') != NULL) in nfs_bootstatic()
126 sep = strchr(nd->nd_root.ndm_host, ':'); in nfs_bootstatic()
127 strlcpy(rootserver, nd->nd_root.ndm_host, in nfs_bootstatic()
128 sep - nd->nd_root.ndm_host+1); in nfs_bootstatic()
141 inet_ntoa(nd->nd_myip)); in nfs_bootstatic()
145 inet_ntoa(nd->nd_gwip)); in nfs_bootstatic()
149 inet_ntoa(nd->nd_mask)); in nfs_bootstatic()
[all …]
H A Dnfs_socket.c1013 mrep = nd->nd_mrep; in nfs_getreq()
1014 md = nd->nd_md; in nfs_getreq()
1015 dpos = nd->nd_dpos; in nfs_getreq()
1026 nd->nd_flag = 0; in nfs_getreq()
1050 (!nd->nd_flag && nd->nd_procnum > NFSV2PROC_STATFS)) { in nfs_getreq()
1056 nd->nd_procnum = nfsv3_procid[nd->nd_procnum]; in nfs_getreq()
1230 nd->nd_md = md; in nfs_getreq()
1240 nd->nd_cr = NULL; in nfs_getreq()
1284 nd->nd_cr = NULL; in nfsdreq_alloc()
1285 return nd; in nfsdreq_alloc()
[all …]
H A Dnfs_serv.c1552 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, in nfsrv_create()
1645 if (nd.ni_dvp == nd.ni_vp) in nfsrv_create()
1771 if (nd.ni_dvp == nd.ni_vp) in nfsrv_mknod()
1798 if (nd.ni_dvp == nd.ni_vp) in nfsrv_mknod()
1864 error = VOP_REMOVE(nd.ni_dvp, nd.ni_vp, &nd.ni_cnd); in nfsrv_remove()
2222 if (nd.ni_dvp != nd.ni_vp) in nfsrv_link()
2227 if (nd.ni_dvp == nd.ni_vp) in nfsrv_link()
2336 if (nd.ni_dvp == nd.ni_vp) in nfsrv_symlink()
2388 if (nd.ni_dvp == nd.ni_vp) in nfsrv_symlink()
2515 if (nd.ni_dvp == nd.ni_vp) in nfsrv_mkdir()
[all …]
H A Dnfs_srvsocket.c393 nd->nd_md = nd->nd_mrep = m; in nfsrv_dorec()
394 nd->nd_nam2 = nam; in nfsrv_dorec()
399 nfsdreq_free(nd); in nfsrv_dorec()
402 *ndp = nd; in nfsrv_dorec()
426 if (nd != NULL) { in nfsrv_timer()
445 struct nfsd *nd; in nfsrv_wakenfsd_locked() local
454 if (nd) { in nfsrv_wakenfsd_locked()
456 if (nd->nfsd_slp) in nfsrv_wakenfsd_locked()
500 if (nd->nd_nam2) { in nfsdsock_sendreply()
503 nfsdreq_free(nd); in nfsdsock_sendreply()
[all …]
H A Dnfs_srvcache.c186 nfsrv_lookupcache(struct nfsrv_descript *nd) in nfsrv_lookupcache() argument
194 if (nd->nd_retxid == rp->rc_xid && in nfsrv_lookupcache()
195 nd->nd_procnum == rp->rc_proc && in nfsrv_lookupcache()
247 rp = nfsrv_lookupcache(nd); in nfsrv_getcache()
265 nfs_rephead(0, nd, slp, rp->rc_status, in nfsrv_getcache()
305 rp->rc_xid = nd->nd_retxid; in nfsrv_getcache()
318 rp->rc_proc = nd->nd_procnum; in nfsrv_getcache()
320 rpdup = nfsrv_lookupcache(nd); in nfsrv_getcache()
350 rp = nfsrv_lookupcache(nd); in nfsrv_updatecache()
360 if ((nd->nd_flag & ND_NFSV3) == 0 && in nfsrv_updatecache()
[all …]
H A Dnfs_syscalls.c719 if (nd) { in nfssvc_nfsd()
721 nd = NULL; in nfssvc_nfsd()
728 if (nd) { in nfssvc_nfsd()
731 nd->nd_nam = nd->nd_nam2; in nfssvc_nfsd()
793 if (nd) { in nfssvc_nfsd()
801 if (nd) { in nfssvc_nfsd()
830 if (nd) { in nfssvc_nfsd()
837 nd = NULL; in nfssvc_nfsd()
848 if (nd) { in nfssvc_nfsd()
856 if (nd) { in nfssvc_nfsd()
[all …]
/netbsd/sys/net/
H A Dnd.c55 struct nd_domain *nd; in nd_timer() local
83 nd->nd_free(ln, 0); in nd_timer()
125 nd->nd_free(ln, 1); in nd_timer()
131 if (nd->nd_nud_enabled(ifp)) { in nd_timer()
195 psrc = nd->nd_holdsrc(ln, &src); in nd_timer()
250 struct nd_domain *nd; in nd_set_timer() local
276 xtick = nd->nd_maxretrans; in nd_set_timer()
293 xtick = nd->nd_delay * hz; in nd_set_timer()
310 struct nd_domain *nd; in nd_resolve() local
418 struct nd_domain *nd; in nd_nud_hint() local
[all …]
/netbsd/external/mpl/dhcp/dist/common/
H A Dresolv.c77 for (nd = domains; nd; nd = nd -> next) {
78 dp = &nd -> next;
79 if (!strcmp (nd -> domain, dn))
82 if (!nd) {
84 if (!nd)
87 nd -> next =
89 *dp = nd;
90 nd -> domain = dn;
92 nd -> rcdate = parse_time;
158 for (dp = domains; dp; dp = nd) {
[all …]
/netbsd/bin/ed/
H A Dre.c101 char *nd; in extract_pattern() local
104 for (nd = ibufp; *nd != delimiter && *nd != '\n'; nd++) in extract_pattern()
105 switch (*nd) { in extract_pattern()
109 if ((nd = parse_char_class(nd + 1)) == NULL) { in extract_pattern()
115 if (*++nd == '\n') { in extract_pattern()
121 len = nd - ibufp; in extract_pattern()
125 ibufp = nd; in extract_pattern()
/netbsd/usr.sbin/ypserv/common/
H A Dypdb.c190 DBT nk, nd; in ypdb_fetch() local
195 status = (db->get)(db, &nk, &nd, 0); in ypdb_fetch()
200 retkey.dptr = nd.data; in ypdb_fetch()
201 retkey.dsize = nd.size; in ypdb_fetch()
217 DBT nk, nd; in ypdb_firstkey() local
241 DBT nk, nd; in ypdb_nextkey() local
264 DBT nk, nd; in ypdb_setkey() local
307 DBT nk, nd; in ypdb_store() local
313 nd.data = content.dptr; in ypdb_store()
314 nd.size = content.dsize; in ypdb_store()
[all …]
/netbsd/sys/kern/
H A Dvfs_syscalls.c2541 if (nd.ni_dvp == nd.ni_vp) in do_sys_mkfifoat()
2553 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); in do_sys_mkfifoat()
2613 VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); in do_sys_linkat()
2614 if (nd.ni_dvp == nd.ni_vp) in do_sys_linkat()
2703 if (nd.ni_dvp == nd.ni_vp) in do_sys_symlinkat()
2715 error = VOP_SYMLINK(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr, path); in do_sys_symlinkat()
2784 if (nd.ni_dvp == nd.ni_vp) in sys_undelete()
2890 error = VOP_RMDIR(nd.ni_dvp, nd.ni_vp, &nd.ni_cnd); in do_sys_unlinkat()
2914 error = VOP_REMOVE(nd.ni_dvp, nd.ni_vp, &nd.ni_cnd); in do_sys_unlinkat()
2919 VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); in do_sys_unlinkat()
[all …]
H A Dsubr_tftproot.c123 struct nfs_diskless *nd = NULL; in tftproot_dhcpboot() local
164 nd = kmem_zalloc(sizeof(*nd), KM_SLEEP); in tftproot_dhcpboot()
165 nd->nd_ifp = ifp; in tftproot_dhcpboot()
166 nd->nd_nomount = 1; in tftproot_dhcpboot()
168 if ((error = nfs_boot_init(nd, l)) != 0) { in tftproot_dhcpboot()
178 if (strstr(nd->nd_bootfile, PREFIX) == nd->nd_bootfile) in tftproot_dhcpboot()
179 (void)memmove(nd->nd_bootfile, in tftproot_dhcpboot()
180 nd->nd_bootfile + (sizeof(PREFIX) - 1), in tftproot_dhcpboot()
187 trh.trh_nd = nd; in tftproot_dhcpboot()
199 if (nd) in tftproot_dhcpboot()
[all …]

12345678910>>...34