HomeSort by: relevance | last modified time | path
    Searched refs:cnp (Results 1 - 25 of 71) sorted by relevancy

1 2 3

  /src/sys/fs/filecorefs/
filecore_lookup.c 136 struct componentname *cnp = ap->a_cnp; local
137 kauth_cred_t cred = cnp->cn_cred;
139 int nameiop = cnp->cn_nameiop;
142 flags = cnp->cn_flags;
156 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME))
166 if (cache_lookup(vdp, cnp->cn_nameptr, cnp->cn_namelen,
167 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp))
    [all...]
  /src/sys/kern/
vfs_lookup.c 455 * cnp is always equal to &ndp->ni_cnp.
459 struct componentname *cnp; member in struct:namei_state
479 state->cnp = &ndp->ni_cnd;
487 KASSERTMSG((state->cnp->cn_cred != NULL), "namei: bad cred/proc");
488 KASSERTMSG(((state->cnp->cn_nameiop & (~OPMASK)) == 0),
490 state->cnp->cn_nameiop);
491 KASSERTMSG(((state->cnp->cn_flags & OPMASK) == 0),
493 state->cnp->cn_flags);
510 KASSERT(state->cnp == &state->ndp->ni_cnd);
531 struct componentname *cnp = state->cnp local
640 struct componentname *cnp = state->cnp; local
738 struct componentname *cnp = state->cnp; local
843 struct componentname *cnp = state->cnp; local
925 struct componentname *cnp = state->cnp; local
1079 struct componentname *cnp = state->cnp; local
1271 struct componentname *cnp = state->cnp; local
1502 struct componentname *cnp = state->cnp; local
1907 struct componentname *cnp = state->cnp; local
2025 struct componentname *cnp = state->cnp; local
    [all...]
  /src/sys/fs/adosfs/
adlookup.c 73 struct componentname *cnp; local
85 cnp = sp->a_cnp;
90 ucp = cnp->cn_cred;
91 nameiop = cnp->cn_nameiop;
92 flags = cnp->cn_flags;
94 pelt = (const u_char *)cnp->cn_nameptr;
95 plen = cnp->cn_namelen;
105 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME))
113 if (cache_lookup(vdp, cnp->cn_nameptr, cnp->cn_namelen
    [all...]
  /src/sys/fs/cd9660/
cd9660_lookup.c 121 struct componentname *cnp = ap->a_cnp; local
122 kauth_cred_t cred = cnp->cn_cred;
124 int nameiop = cnp->cn_nameiop;
126 flags = cnp->cn_flags;
141 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME))
151 if (cache_lookup(vdp, cnp->cn_nameptr, cnp->cn_namelen,
152 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp))
    [all...]
  /src/sys/rump/librump/rumpvfs/
rump_vfs.c 208 struct componentname *cnp; local
211 cnp = &rcn->rcn_cn;
215 cnp->cn_nameptr = rcn->rcn_path;
217 cnp->cn_nameiop = nameiop;
218 cnp->cn_flags = flags & (MODMASK | PARAMASK);
220 cnp->cn_namelen = namelen;
222 cnp->cn_cred = creds;
224 return cnp;
228 rump_freecn(struct componentname *cnp, int flags)
230 struct rumpcn *rcn = (void *)cnp;
278 struct componentname *cnp; local
    [all...]
rumpfs.c 571 struct componentname *cnp, struct rumpfs_node *rn)
576 rdent->rd_name = kmem_alloc(cnp->cn_namelen+1, KM_SLEEP);
578 strlcpy(rdent->rd_name, cnp->cn_nameptr, cnp->cn_namelen+1);
581 if ((cnp->cn_flags & ISWHITEOUT) != 0) {
582 KASSERT((cnp->cn_flags & DOWHITEOUT) == 0);
583 freedir(rnd, cnp);
589 freedir(struct rumpfs_node *rnd, struct componentname *cnp)
594 if (rd->rd_namelen == cnp->cn_namelen &&
595 strncmp(rd->rd_name, cnp->cn_nameptr
677 struct componentname *cnp = ap->a_cnp; local
1025 struct componentname *cnp = ap->a_cnp; local
1055 struct componentname *cnp = ap->a_cnp; local
1095 struct componentname *cnp = ap->a_cnp; local
1122 struct componentname *cnp = ap->a_cnp; local
1153 struct componentname *cnp = ap->a_cnp; local
1187 struct componentname *cnp = ap->a_cnp; local
1240 struct componentname *cnp = ap->a_cnp; local
    [all...]
rumpvnode_if.c 84 struct componentname *cnp)
89 error = VOP_LOOKUP(dvp, vpp, cnp);
98 struct componentname *cnp,
104 error = VOP_CREATE(dvp, vpp, cnp, vap);
113 struct componentname *cnp,
119 error = VOP_MKNOD(dvp, vpp, cnp, vap);
386 struct componentname *cnp)
391 error = VOP_REMOVE(dvp, vp, cnp);
400 struct componentname *cnp)
405 error = VOP_LINK(dvp, vp, cnp);
    [all...]
  /src/sys/fs/autofs/
autofs_vnops.c 205 struct componentname *cnp = ap->a_cnp; local
210 const bool lastcn __diagused = (cnp->cn_flags & ISLASTCN) != 0;
218 KASSERT(!VOP_ACCESS(dvp, VEXEC, cnp->cn_cred));
224 cachefound = cache_lookup(dvp, cnp->cn_nameptr, cnp->cn_namelen,
225 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp);
235 if (cnp->cn_flags & ISDOTDOT) {
240 KASSERT(!(lastcn && cnp->cn_nameiop == RENAME));
249 } else if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.')
370 struct componentname *cnp = ap->a_cnp; local
    [all...]
  /src/sys/fs/msdosfs/
msdosfs_lookup.c 105 struct componentname *cnp = ap->a_cnp; local
123 int nameiop = cnp->cn_nameiop;
128 flags = cnp->cn_flags;
132 (int)cnp->cn_namelen, cnp->cn_nameptr);
145 if ((error = VOP_ACCESS(vdp, VEXEC, cnp->cn_cred)) != 0)
149 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME))
159 if (cache_lookup(vdp, cnp->cn_nameptr, cnp->cn_namelen
    [all...]
  /src/sys/fs/tmpfs/
tmpfs_vnops.c 123 * cnp (component name - path).
137 struct componentname *cnp = ap->a_cnp; local
138 const bool lastcn = (cnp->cn_flags & ISLASTCN) != 0;
150 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred);
160 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME)) {
169 cachefound = cache_lookup(dvp, cnp->cn_nameptr, cnp->cn_namelen,
170 cnp->cn_nameiop, cnp->cn_flags
310 struct componentname *cnp = ap->a_cnp; local
328 struct componentname *cnp = ap->a_cnp; local
727 struct componentname *cnp = ap->a_cnp; local
778 struct componentname *cnp = ap->a_cnp; local
844 struct componentname *cnp = ap->a_cnp; local
897 struct componentname *cnp = ap->a_cnp; local
957 struct componentname *cnp = ap->a_cnp; local
1325 struct componentname *cnp = ap->a_cnp; local
    [all...]
  /src/sys/fs/unionfs/
unionfs_vnops.c 121 struct componentname *cnp; local
125 cnp = ap->a_cnp;
126 nameiop = cnp->cn_nameiop;
127 cnflags = cnp->cn_flags;
135 UNIONFS_INTERNAL_DEBUG("unionfs_lookup: enter: nameiop=%ld, flags=%lx, path=%s\n", nameiop, cnflags, cnp->cn_nameptr);
163 error = VOP_LOOKUP(dtmpvp, &vp, cnp);
187 cache_enter(dvp, NULLVP, cnp->cn_nameptr,
188 cnp->cn_namelen, cnp->cn_flags);
199 uerror = VOP_LOOKUP(udvp, &uvp, cnp);
342 struct componentname *cnp; local
376 struct componentname *cnp; local
415 struct componentname *cnp; local
924 struct componentname *cnp; local
1231 struct componentname *cnp; local
1277 struct componentname *cnp; local
1336 struct componentname *cnp; local
    [all...]
unionfs.h 124 int unionfs_nodeget(struct mount *mp, struct vnode *uppervp, struct vnode *lowervp, struct vnode *dvp, struct vnode **vpp, struct componentname *cnp);
133 int unionfs_mkshadowdir(struct unionfs_mount *ump, struct vnode *duvp, struct unionfs_node *unp, struct componentname *cnp);
134 int unionfs_mkwhiteout(struct vnode *dvp, struct componentname *cnp, const char *path);
135 int unionfs_relookup_for_create(struct vnode *dvp, struct componentname *cnp);
136 int unionfs_relookup_for_delete(struct vnode *dvp, struct componentname *cnp);
137 int unionfs_relookup_for_rename(struct vnode *dvp, struct componentname *cnp);
unionfs_subr.c 70 struct vnode **vpp, struct componentname *cnp)
79 path = (cnp ? cnp->cn_nameptr : NULL);
85 if (cnp && !(cnp->cn_flags & ISLASTCN))
118 malloc(cnp->cn_namelen +1, M_UNIONFSPATH, M_WAITOK|M_ZERO);
119 memcpy(unp->un_path, cnp->cn_nameptr, cnp->cn_namelen);
120 unp->un_path[cnp->cn_namelen] = '\0';
299 struct componentname *cnp, struct componentname *cn
    [all...]
  /src/sys/ufs/ext2fs/
ext2fs_lookup.c 127 ext2fs_is_dot_entry(struct componentname *cnp)
129 return cnp->cn_namelen <= 2 && cnp->cn_nameptr[0] == '.' &&
130 (cnp->cn_nameptr[1] == '.' || cnp->cn_nameptr[1] == '\0');
247 * The cnp->cn_nameiop argument is LOOKUP, CREATE, RENAME, or DELETE depending
300 struct componentname *cnp = ap->a_cnp; local
301 kauth_cred_t cred = cnp->cn_cred;
303 int nameiop = cnp->cn_nameiop;
309 flags = cnp->cn_flags
    [all...]
  /src/sys/ufs/chfs/
chfs_subr.c 97 * 'cnp' describes the name of the entry to look for. Note that the .
104 chfs_dir_lookup(struct chfs_inode *ip, struct componentname *cnp)
110 KASSERT(IMPLIES(cnp->cn_namelen == 1, cnp->cn_nameptr[0] != '.'));
111 KASSERT(IMPLIES(cnp->cn_namelen == 2, !(cnp->cn_nameptr[0] == '.' &&
112 cnp->cn_nameptr[1] == '.')));
116 KASSERT(cnp->cn_namelen < 0xffff);
119 if (fd->nsize == (uint16_t)cnp->cn_namelen &&
120 memcmp(fd->name, cnp->cn_nameptr, fd->nsize) == 0)
    [all...]
chfs_vnode.c 194 struct componentname *cnp, enum vtype type)
240 ip->uid = kauth_cred_geteuid(cnp->cn_cred);
241 ip->gid = kauth_cred_getegid(cnp->cn_cred);
254 error = kauth_authorize_vnode(cnp->cn_cred,
256 cnp->cn_cred, ip->uid, ip->gid, mode));
285 nfd = chfs_alloc_dirent(cnp->cn_namelen + 1);
289 nfd->nsize = cnp->cn_namelen;
290 memcpy(&(nfd->name), cnp->cn_nameptr, cnp->cn_namelen);
292 nfd->nhash = hash32_buf(nfd->name, cnp->cn_namelen, HASH32_BUF_INIT)
    [all...]
  /src/sys/fs/nfs/client/
nfs_clvnops.c 210 struct componentname *cnp, struct vattr *vap);
1033 struct componentname *cnp = ap->a_cnp; local
1037 int flags = cnp->cn_flags;
1042 struct thread *td = cnp->cn_thread;
1050 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME))
1065 if ((error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, td)) != 0)
1067 error = cache_lookup(dvp, vpp, cnp, &nctime, &ncticks);
1076 if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.')
1536 struct componentname *cnp = ap->a_cnp; local
1657 struct componentname *cnp = ap->a_cnp; local
1954 struct componentname *cnp = ap->a_cnp; local
2013 struct componentname *cnp = ap->a_cnp; local
2089 struct componentname *cnp = ap->a_cnp; local
2165 struct componentname *cnp = ap->a_cnp; local
    [all...]
  /src/sys/fs/union/
union_vnops.c 249 struct componentname *cnp)
264 if (cnp->cn_flags & ISDOTDOT) {
279 error = VOP_LOOKUP(dvp, &tdvp, cnp);
283 if (cnp->cn_flags & ISDOTDOT)
286 if (cnp->cn_flags & ISDOTDOT)
332 struct componentname *cnp = ap->a_cnp; local
339 if (cnp->cn_namelen == 3 &&
340 cnp->cn_nameptr[2] == '.' &&
341 cnp->cn_nameptr[1] == '.' &&
342 cnp->cn_nameptr[0] == '.')
545 struct componentname *cnp = ap->a_cnp; local
578 struct componentname *cnp = ap->a_cnp; local
597 struct componentname *cnp = ap->a_cnp; local
1208 struct componentname *cnp = ap->a_cnp; local
1244 struct componentname *cnp = ap->a_cnp; local
1443 struct componentname *cnp = ap->a_cnp; local
1477 struct componentname *cnp = ap->a_cnp; local
1522 struct componentname *cnp = ap->a_cnp; local
    [all...]
union_subr.c 338 * should exist (but doesn't) and (cnp) is the componentname
360 struct componentname *cnp, /* may be null */
372 is_dotdot = (dvp != NULL && cnp != NULL && (cnp->cn_flags & ISDOTDOT));
452 if (cnp && (lowervp != NULLVP)) {
453 un->un_path = malloc(cnp->cn_namelen+1,
455 memcpy(un->un_path, cnp->cn_nameptr,
456 cnp->cn_namelen);
457 un->un_path[cnp->cn_namelen] = '\0';
489 if (dvp && cnp && (lowervp != NULLVP))
    [all...]
  /src/sys/ufs/lfs/
ulfs_lookup.c 86 * The cnp->cn_nameiop argument is LOOKUP, CREATE, RENAME, or DELETE depending
147 struct componentname *cnp = ap->a_cnp; local
148 kauth_cred_t cred = cnp->cn_cred;
150 int nameiop = cnp->cn_nameiop;
157 flags = cnp->cn_flags;
181 if (cache_lookup(vdp, cnp->cn_nameptr, cnp->cn_namelen,
182 cnp->cn_nameiop, cnp->cn_flags, &iswhiteout, vpp)) {
184 cnp->cn_flags |= ISWHITEOUT
    [all...]
  /src/sys/fs/nilfs/
nilfs_vnops.c 617 struct componentname *cnp = ap->a_cnp; local
630 nameiop = cnp->cn_nameiop;
631 islastcn = cnp->cn_flags & ISLASTCN;
635 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred);
648 DPRINTF(LOOKUP, ("\tlooking up cnp->cn_nameptr '%s'\n",
649 cnp->cn_nameptr));
651 if (cache_lookup(dvp, cnp->cn_nameptr, cnp->cn_namelen,
652 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp))
1081 struct componentname *cnp = ap->a_cnp; local
1104 struct componentname *cnp = ap->a_cnp; local
1127 struct componentname *cnp = ap->a_cnp; local
1188 struct componentname *cnp = ap->a_cnp; local
1220 struct componentname *cnp = ap->a_cnp; local
1405 struct componentname *cnp = ap->a_cnp; local
1440 struct componentname *cnp = ap->a_cnp; local
    [all...]
nilfs_subr.h 72 int nilfs_create_node(struct vnode *dvp, struct vnode **vpp, struct vattr *vap, struct componentname *cnp);
76 int nilfs_dir_detach(struct nilfs_mount *ump, struct nilfs_node *dir_node, struct nilfs_node *nilfs_node, struct componentname *cnp);
77 int nilfs_dir_attach(struct nilfs_mount *ump, struct nilfs_node *dir_node, struct nilfs_node *nilfs_node, struct vattr *vap, struct componentname *cnp);
  /src/sys/nfs/
nfs_vnops.c 229 struct componentname *cnp)
233 if ((cnp->cn_flags & MAKEENTRY) == 0) {
245 cache_enter(dvp, vp, cnp->cn_nameptr, cnp->cn_namelen, cnp->cn_flags);
732 struct componentname *cnp = ap->a_cnp; local
749 flags = cnp->cn_flags;
754 (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME))
762 if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.')
1534 struct componentname *cnp = ap->a_cnp; local
1557 struct componentname *cnp = ap->a_cnp; local
1704 struct componentname *cnp = ap->a_cnp; local
2006 struct componentname *cnp = ap->a_cnp; local
2055 struct componentname *cnp = ap->a_cnp; local
2143 struct componentname *cnp = ap->a_cnp; local
2232 struct componentname *cnp = ap->a_cnp; local
2603 struct componentname *cnp = &ndp->ni_cnd; local
    [all...]
  /src/sys/ufs/ufs/
ufs_lookup.c 298 * The cnp->cn_nameiop argument is LOOKUP, CREATE, RENAME, or DELETE depending
348 struct componentname *cnp = ap->a_cnp; local
349 kauth_cred_t cred = cnp->cn_cred;
351 int nameiop = cnp->cn_nameiop;
361 flags = cnp->cn_flags;
384 if (cache_lookup(vdp, cnp->cn_nameptr, cnp->cn_namelen,
385 cnp->cn_nameiop, cnp->cn_flags, &iswhiteout, vpp)) {
387 cnp->cn_flags |= ISWHITEOUT
    [all...]
  /src/sys/fs/udf/
udf_vnops.c 661 struct componentname *cnp = ap->a_cnp; local
677 cnp->cn_nameptr));
680 nameiop = cnp->cn_nameiop;
681 islastcn = cnp->cn_flags & ISLASTCN;
685 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred);
698 DPRINTF(LOOKUP, ("\tlooking up cnp->cn_nameptr '%s'\n",
699 cnp->cn_nameptr));
701 if (cache_lookup(dvp, cnp->cn_nameptr, cnp->cn_namelen,
702 cnp->cn_nameiop, cnp->cn_flags, NULL, vpp))
1490 struct componentname *cnp = ap->a_cnp; local
1513 struct componentname *cnp = ap->a_cnp; local
1536 struct componentname *cnp = ap->a_cnp; local
1557 struct componentname *cnp = ap->a_cnp; local
1728 struct componentname *cnp = ap->a_cnp; local
1941 struct componentname *cnp = ap->a_cnp; local
1986 struct componentname *cnp = ap->a_cnp; local
    [all...]

Completed in 27 milliseconds

1 2 3