Home
last modified time | relevance | path

Searched refs:nch (Results 1 – 25 of 50) sorted by relevance

12

/dragonfly/sys/sys/
HDnamecache.h191 void cache_lock(struct nchandle *nch);
192 void cache_lock_maybe_shared(struct nchandle *nch, int excl);
197 int cache_lock_nonblock(struct nchandle *nch);
198 void cache_unlock(struct nchandle *nch);
199 int cache_lockstatus(struct nchandle *nch);
200 void cache_setvp(struct nchandle *nch, struct vnode *vp);
201 void cache_settimeout(struct nchandle *nch, int nticks);
202 void cache_setunresolved(struct nchandle *nch);
203 void cache_clrmountpt(struct nchandle *nch);
204 struct nchandle cache_nlookup(struct nchandle *nch,
[all …]
HDvfsops.h867 int vop_nresolve(struct vop_ops *ops, struct nchandle *nch,
871 int vop_ncreate(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
873 int vop_nmkdir(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
875 int vop_nmknod(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
877 int vop_nlink(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
879 int vop_nsymlink(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
882 int vop_nwhiteout(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
884 int vop_nremove(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
886 int vop_nrmdir(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp,
1160 #define VOP_NRESOLVE(nch, dvp, cred) \ argument
[all …]
/dragonfly/sys/kern/
HDvfs_nlookup.c84 static int naccess(struct nlookupdata *nd, struct nchandle *nch,
434 struct nchandle nch; in nlookup_simple() local
439 nch = nd.nl_nch; /* keep hold ref from structure */ in nlookup_simple()
442 cache_zero(&nch); in nlookup_simple()
446 cache_zero(&nch); in nlookup_simple()
448 return(nch); in nlookup_simple()
534 struct nchandle nch; in nlookup() local
705 cache_get_maybe_shared(&nd->nl_nch, &nch, in nlookup()
708 cache_copy(&nd->nl_nch, &nch); in nlookup()
710 nch_gen = nch.ncp->nc_generation & ~3; in nlookup()
[all …]
HDvfs_cache.c967 cache_zero(struct nchandle *nch) in cache_zero() argument
969 nch->ncp = NULL; in cache_zero()
970 nch->mount = NULL; in cache_zero()
984 cache_hold(struct nchandle *nch) in cache_hold() argument
986 _cache_hold(nch->ncp); in cache_hold()
987 _cache_mntref(nch->mount); in cache_hold()
988 return(nch); in cache_hold()
996 cache_copy(struct nchandle *nch, struct nchandle *target) in cache_copy() argument
1004 ncp = nch->ncp; in cache_copy()
1005 mp = nch->mount; in cache_copy()
[all …]
HDvfs_default.c185 struct nchandle *nch; in vop_compat_nresolve() local
189 nch = ap->a_nch; /* locked namecache node */ in vop_compat_nresolve()
190 ncp = nch->ncp; in vop_compat_nresolve()
227 cache_setvp(nch, vp); in vop_compat_nresolve()
233 cache_setvp(nch, NULL); in vop_compat_nresolve()
315 struct nchandle *nch; in vop_compat_ncreate() local
323 nch = ap->a_nch; /* locked namecache node */ in vop_compat_ncreate()
325 ncp = nch->ncp; in vop_compat_ncreate()
362 cache_setunresolved(nch); in vop_compat_ncreate()
363 cache_setvp(nch, *ap->a_vpp); in vop_compat_ncreate()
[all …]
HDvfs_conf.c216 struct nchandle nch; in vfs_mountroot_devfs() local
269 nch = nd.nl_nch; in vfs_mountroot_devfs()
276 vp = nch.ncp->nc_vp; in vfs_mountroot_devfs()
278 cache_put(&nch); in vfs_mountroot_devfs()
283 cache_unlock(&nch); in vfs_mountroot_devfs()
286 cache_drop(&nch); in vfs_mountroot_devfs()
293 cache_drop(&nch); in vfs_mountroot_devfs()
317 mp->mnt_ncmounton = nch; in vfs_mountroot_devfs()
346 cache_lock(&nch); in vfs_mountroot_devfs()
347 nch.ncp->nc_flag |= NCF_ISMOUNTPT; in vfs_mountroot_devfs()
[all …]
HDvfs_quota.c332 struct nchandle nch; in sys_vquotactl() local
357 nch = nd.nl_nch; in sys_vquotactl()
364 cache_put(&nch); in sys_vquotactl()
370 cache_put(&nch); in sys_vquotactl()
376 cache_put(&nch); in sys_vquotactl()
381 cmd_get_usage_all(nch.mount, pa_out); in sys_vquotactl()
385 error = cmd_set_usage_all(nch.mount, args); in sys_vquotactl()
389 error = cmd_set_limit(nch.mount, args); in sys_vquotactl()
393 error = cmd_set_limit_uid(nch.mount, args); in sys_vquotactl()
397 error = cmd_set_limit_gid(nch.mount, args); in sys_vquotactl()
[all …]
HDvfs_synth.c56 struct nchandle nch; in getsynthvnode() local
86 nch = nd.nl_nch; in getsynthvnode()
99 vp = nch.ncp->nc_vp; in getsynthvnode()
102 cache_unlock(&nch); in getsynthvnode()
HDvfs_syscalls.c122 struct nchandle nch; in sys_mount() local
197 nch = nd.nl_nch; in sys_mount()
201 if ((nch.ncp->nc_flag & NCF_ISMOUNTPT) && in sys_mount()
202 (mp = cache_findmount(&nch)) != NULL) { in sys_mount()
213 vp = nch.ncp->nc_vp; in sys_mount()
215 cache_put(&nch); in sys_mount()
218 cache_unlock(&nch); in sys_mount()
225 cache_drop(&nch); in sys_mount()
246 cache_drop(&nch); in sys_mount()
257 cache_drop(&nch); in sys_mount()
[all …]
HDvfs_journal.c1351 struct nchandle nch; in jrecord_write_vnode_ref() local
1353 nch.mount = vp->v_mount; in jrecord_write_vnode_ref()
1355 TAILQ_FOREACH(nch.ncp, &vp->v_namecache, nc_vnode) { in jrecord_write_vnode_ref()
1356 if ((nch.ncp->nc_flag & (NCF_UNRESOLVED|NCF_DESTROYED)) == 0) in jrecord_write_vnode_ref()
1359 if (nch.ncp) { in jrecord_write_vnode_ref()
1360 cache_hold(&nch); in jrecord_write_vnode_ref()
1362 jrecord_write_path(jrec, JLEAF_PATH_REF, nch.ncp); in jrecord_write_vnode_ref()
1363 cache_drop(&nch); in jrecord_write_vnode_ref()
1373 struct nchandle nch; in jrecord_write_vnode_link() local
1375 nch.mount = vp->v_mount; in jrecord_write_vnode_link()
[all …]
HDkern_exec.c214 struct nchandle *nch; in kern_execve() local
264 nch = &nd->nl_nch; in kern_execve()
269 error = cache_vget(nch, nd->nl_cred, LK_SHARED, &imgp->vp); in kern_execve()
272 cache_unlock(nch); in kern_execve()
274 nch = &fp->f_nchandle; in kern_execve()
287 error = exec_check_permissions(imgp, nch->mount); in kern_execve()
453 if (nch->ncp) { in kern_execve()
454 len = min(nch->ncp->nc_nlen, MAXCOMLEN); in kern_execve()
455 bcopy(nch->ncp->nc_name, p->p_comm, len); in kern_execve()
551 if (nch->mount) in kern_execve()
[all …]
HDvfs_vopops.c1374 vop_nresolve(struct vop_ops *ops, struct nchandle *nch, in vop_nresolve() argument
1383 ap.a_nch = nch; in vop_nresolve()
1436 vop_ncreate(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, in vop_ncreate() argument
1445 ap.a_nch = nch; in vop_ncreate()
1471 vop_nmkdir(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, in vop_nmkdir() argument
1480 ap.a_nch = nch; in vop_nmkdir()
1506 vop_nmknod(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, in vop_nmknod() argument
1515 ap.a_nch = nch; in vop_nmknod()
1542 vop_nlink(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, in vop_nlink() argument
1551 ap.a_nch = nch; in vop_nlink()
[all …]
/dragonfly/contrib/mdocml/
HDmdoc_validate.c520 const struct roff_node *nch; in post_delim() local
526 nch = mdoc->last->last; in post_delim()
527 if (nch == NULL || nch->type != ROFFT_TEXT) in post_delim()
529 lc = strchr(nch->string, '\0') - 1; in post_delim()
530 if (lc < nch->string) in post_delim()
539 mandoc_msg(MANDOCERR_DELIM, nch->line, in post_delim()
540 nch->pos + (int)(lc - nch->string), "%s%s %s", roff_name[tok], in post_delim()
541 nch == mdoc->last->child ? "" : " ...", nch->string); in post_delim()
547 const struct roff_node *nch; in post_delim_nb() local
559 nch = mdoc->last->last; in post_delim_nb()
[all …]
HDmandoc.c546 mandoc_normdate(struct roff_node *nch, struct roff_node *nbl) in mandoc_normdate() argument
553 if (nch == NULL) { in mandoc_normdate()
561 if (*nch->string == '\0') { in mandoc_normdate()
562 mandoc_msg(MANDOCERR_DATE_MISSING, nch->line, in mandoc_normdate()
563 nch->pos, "%s", roff_name[nbl->tok]); in mandoc_normdate()
566 if (strcmp(nch->string, "$" "Mdocdate$") == 0) in mandoc_normdate()
571 if (a2time(&t, "$" "Mdocdate: %b %d %Y $", nch->string) || in mandoc_normdate()
572 a2time(&t, "%b %d, %Y", nch->string)) { in mandoc_normdate()
575 mandoc_msg(MANDOCERR_DATE_FUTURE, nch->line, in mandoc_normdate()
576 nch->pos, "%s %s", roff_name[nbl->tok], cp); in mandoc_normdate()
[all …]
HDmdoc_state.c210 struct roff_node *nch; in state_sh() local
232 for (nch = n->child; nch != NULL; nch = nch->next) in state_sh()
233 nch->sec = n->sec; in state_sh()
HDhtml.c364 const struct roff_node *nch; in html_make_id() local
379 for (nch = n->child; nch != NULL; nch = nch->next) in html_make_id()
380 if (nch->type != ROFFT_TEXT) in html_make_id()
802 struct roff_node *nch; in print_otag_id() local
817 if (href != NULL && (nch = n->child) != NULL) { in print_otag_id()
821 nch = NULL; in print_otag_id()
823 while (nch != NULL && nch->type == ROFFT_TEXT) in print_otag_id()
824 nch = nch->next; in print_otag_id()
825 if (nch == NULL) in print_otag_id()
/dragonfly/test/pcpu/
HDncache-stats.c50 printf("%-9ld%s", nch[i-1].n, "\t"); \
59 struct nchstats *nch, total; in main() local
63 nch = malloc(nch_len); in main()
64 if (nch == NULL) in main()
68 if (sysctlbyname("vfs.cache.nchstats", nch, &nch_len, NULL, 0) < 0) { in main()
72 nch = reallocf(nch, nch_len); in main()
73 if (nch == NULL) in main()
83 kvm_nch_cpuagg(nch, &total, ncpus); in main()
108 free(nch); in main()
/dragonfly/test/debug/
HDncptrace.c77 static char *getncppath(kvm_t *kd, struct nchandle *nch, char *buf, int bytes);
91 struct nchandle nch; in main() local
129 kkread(kd, Nl[0].n_value, &nch, sizeof(nch)); in main()
261 getncppath(kvm_t *kd, struct nchandle *nch, char *base, int bytes) in getncppath() argument
267 ncpptr = nch->ncp; in getncppath()
279 if (nch->mount) { in getncppath()
280 kkread(kd, (long)nch->mount, &mntinfo, sizeof(mntinfo)); in getncppath()
/dragonfly/contrib/nvi2/common/
HDcut.h66 #define CBNAME(sp, cbp, nch) { \ argument
68 L__name = isupper(nch) ? tolower(nch) : (nch); \
/dragonfly/sys/vfs/autofs/
HDautofs_vnops.c196 struct nchandle *nch = ap->a_nch; in autofs_nresolve() local
197 struct namecache *ncp = nch->ncp; in autofs_nresolve()
207 cache_hold(nch); in autofs_nresolve()
208 cache_unlock(nch); in autofs_nresolve()
211 cache_lock(nch); in autofs_nresolve()
212 cache_drop(nch); in autofs_nresolve()
228 cache_setvp(nch, NULL); in autofs_nresolve()
236 cache_setvp(nch, vp); in autofs_nresolve()
249 struct nchandle *nch = ap->a_nch; in autofs_nmkdir() local
250 struct namecache *ncp = nch->ncp; in autofs_nmkdir()
[all …]
/dragonfly/lib/libc/resolv/
HDres_comp.c157 int nch = *dn++; in res_hnok() local
164 } else if (periodchar(nch) || nch == '\0') { in res_hnok()
171 pch = ch, ch = nch; in res_hnok()
/dragonfly/sys/vfs/hammer/
HDhammer_vnops.c155 static int hammer_dounlink(hammer_transaction_t trans, struct nchandle *nch,
930 struct nchandle *nch; in hammer_vop_ncreate() local
934 nch = ap->a_nch; in hammer_vop_ncreate()
955 dip, nch->ncp->nc_name, nch->ncp->nc_nlen, in hammer_vop_ncreate()
970 nch->ncp->nc_name, nch->ncp->nc_nlen, in hammer_vop_ncreate()
1390 struct nchandle *nch; in hammer_vop_nlink() local
1397 nch = ap->a_nch; in hammer_vop_nlink()
1424 nch->ncp->nc_name, nch->ncp->nc_nlen, in hammer_vop_nlink()
1431 cache_setunresolved(nch); in hammer_vop_nlink()
1432 cache_setvp(nch, ap->a_vp); in hammer_vop_nlink()
[all …]
/dragonfly/contrib/less/
HDdecode.c1091 int nch; in editchar() local
1116 nch = 0; in editchar()
1118 if (nch > 0) in editchar()
1120 usercmd[nch] = c; in editchar()
1121 usercmd[nch+1] = '\0'; in editchar()
1122 nch++; in editchar()
1124 } while (action == A_PREFIX && nch < MAX_CMDLEN); in editchar()
1182 while (nch > 1) in editchar()
1184 ungetcc(usercmd[--nch]); in editchar()
/dragonfly/sys/vfs/dirfs/
HDdirfs_vnops.c153 struct nchandle *nch; in dirfs_nresolve() local
162 nch = ap->a_nch; in dirfs_nresolve()
163 ncp = nch->ncp; in dirfs_nresolve()
164 mp = nch->mount; in dirfs_nresolve()
193 cache_setvp(nch, NULL); in dirfs_nresolve()
196 cache_setvp(nch, vp); in dirfs_nresolve()
877 struct nchandle *nch; in dirfs_nremove() local
891 nch = ap->a_nch; in dirfs_nremove()
892 ncp = nch->ncp; in dirfs_nremove()
898 cache_vget(nch, ap->a_cred, LK_SHARED, &vp); in dirfs_nremove()
[all …]
/dragonfly/sys/vfs/nfs/
HDnfs_subs.c994 struct nchandle nch; in nfs_namei() local
1153 if ((error = cache_fromdvp(dp, cred, 1, &nch)) != 0) in nfs_namei()
1155 nlookup_init_raw(nd, namebuf, UIO_SYSSPACE, nflags, cred, &nch); in nfs_namei()
1156 cache_drop(&nch); in nfs_namei()
1171 nch = nd->nl_nch; in nfs_namei()
1172 nch.ncp = nch.ncp->nc_parent; in nfs_namei()
1173 cache_hold(&nch); in nfs_namei()
1174 cache_lock(&nch); in nfs_namei()
1175 error = cache_vget(&nch, nd->nl_cred, in nfs_namei()
1177 cache_put(&nch); in nfs_namei()

12