Searched refs:cn_flags (Results 1 - 25 of 46) sorted by relevance

12

/freebsd-9.3-release/sys/kern/
H A Dvfs_lookup.c148 KASSERT((cnp->cn_flags & MPSAFE) != 0 || mtx_owned(&Giant) != 0,
154 KASSERT((cnp->cn_flags & OPMASK) == 0,
157 cnp->cn_flags &= ~LOCKSHARED;
161 cnp->cn_flags &= ~TRAILINGSLASH;
167 if ((cnp->cn_flags & HASBUF) == 0)
217 if (cnp->cn_flags & AUDITVNODE1)
219 if (cnp->cn_flags & AUDITVNODE2)
228 if (cnp->cn_flags & AUDITVNODE1)
230 if (cnp->cn_flags & AUDITVNODE2)
272 cnp->cn_flags,
[all...]
H A Dkern_cons.c193 cnavailable(cn, (cn->cn_flags & CN_FLAG_NOAVAIL) == 0);
260 cn->cn_flags &= ~CN_FLAG_NOAVAIL;
264 cn->cn_flags |= CN_FLAG_NOAVAIL;
358 if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG))
371 if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG))
404 if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) {
473 if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) {
H A Dvfs_cache.c484 cnp->cn_flags &= ~MAKEENTRY;
515 if ((cnp->cn_flags & MAKEENTRY) == 0) {
558 if ((cnp->cn_flags & MAKEENTRY) == 0) {
568 if ((cnp->cn_flags & MAKEENTRY) == 0) {
616 cnp->cn_flags |= ISWHITEOUT;
665 if (cnp->cn_flags & ISDOTDOT) {
675 if (cnp->cn_flags & ISDOTDOT) {
688 if ((cnp->cn_flags & ISLASTCN) &&
854 if (cnp->cn_flags & ISWHITEOUT)
1022 int flags = cnp->cn_flags;
[all...]
H A Dvfs_vnops.c136 mpsafe = ndp->ni_cnd.cn_flags & MPSAFE;
142 ndp->ni_cnd.cn_flags = ISOPEN | LOCKPARENT | LOCKLEAF |
145 ndp->ni_cnd.cn_flags |= FOLLOW;
147 ndp->ni_cnd.cn_flags |= AUDITVNODE1;
153 ndp->ni_cnd.cn_flags &= ~MPSAFE;
200 ndp->ni_cnd.cn_flags = ISOPEN |
204 ndp->ni_cnd.cn_flags |= LOCKSHARED;
206 ndp->ni_cnd.cn_flags |= AUDITVNODE1;
210 ndp->ni_cnd.cn_flags &= ~MPSAFE;
/freebsd-9.3-release/sys/fs/unionfs/
H A Dunion_subr.c231 if (cnp && !(cnp->cn_flags & ISLASTCN))
542 cn->cn_flags = (LOCKPARENT | LOCKLEAF | HASBUF | SAVENAME | ISLASTCN);
551 cn->cn_flags |= (cnp->cn_flags & (DOWHITEOUT | SAVESTART));
553 cn->cn_flags |= (cnp->cn_flags & SAVESTART);
560 cn->cn_flags &= ~HASBUF;
603 if (cn.cn_flags & HASBUF) {
605 cn.cn_flags &= ~HASBUF;
609 cn.cn_flags |
[all...]
/freebsd-9.3-release/sys/sys/
H A Dnamei.h44 u_int64_t cn_flags; /* flags to namei */ member in struct:componentname
154 #define NDHASGIANT(NDP) (((NDP)->ni_cnd.cn_flags & GIANTHELD) != 0)
179 ndp->ni_cnd.cn_flags = flags;
H A Dcons.h74 int cn_flags; /* capabilities of this console */ member in struct:consdev
85 /* Values for cn_flags. */
/freebsd-9.3-release/sys/nfsserver/
H A Dnfs_srvsubs.c596 int lockleaf = (cnp->cn_flags & LOCKLEAF) != 0;
603 cnp->cn_flags |= NOMACCHECK;
659 cnp->cn_flags |= RDONLY;
738 cnp->cn_flags |= NOCROSSMOUNT;
751 cnp->cn_flags |= LOCKLEAF;
762 ndp->ni_cnd.cn_flags |= GIANTHELD;
764 vfslocked = (ndp->ni_cnd.cn_flags & GIANTHELD) != 0;
765 ndp->ni_cnd.cn_flags &= ~GIANTHELD;
775 if ((cnp->cn_flags & ISSYMLINK) == 0) {
776 if (cnp->cn_flags
[all...]
H A Dnfs_serv.c68 * We use the ni_cnd.cn_flags 'HASBUF' flag to track whether the name
157 nd->ni_cnd.cn_flags = 0;
562 nd.ni_cnd.cn_flags = LOCKLEAF | SAVESTART | MPSAFE;
612 ind.ni_cnd.cn_flags &= ~GIANTHELD;
615 nd.ni_cnd.cn_flags |= GIANTHELD;
619 ind.ni_cnd.cn_flags &= ~GIANTHELD;
1285 nd.ni_cnd.cn_flags = LOCKPARENT | LOCKLEAF | SAVESTART | MPSAFE;
1431 nd.ni_cnd.cn_flags &= ~(LOCKPARENT);
1436 nd.ni_cnd.cn_flags |= GIANTHELD;
1440 nd.ni_cnd.cn_flags
[all...]
/freebsd-9.3-release/sys/fs/tmpfs/
H A Dtmpfs_vnops.c96 !(cnp->cn_flags & ISDOTDOT)));
103 if (cnp->cn_flags & ISDOTDOT) {
122 cnp->cn_flags |= ISWHITEOUT;
128 if ((cnp->cn_flags & ISLASTCN) &&
132 cnp->cn_flags & DOWHITEOUT &&
133 cnp->cn_flags & ISWHITEOUT))) {
141 cnp->cn_flags |= SAVENAME;
159 !(cnp->cn_flags & ISLASTCN)) {
167 if ((cnp->cn_flags & ISLASTCN) &&
189 cnp->cn_flags |
[all...]
/freebsd-9.3-release/sys/fs/cd9660/
H A Dcd9660_lookup.c120 int flags = cnp->cn_flags;
314 if (cnp->cn_flags & MAKEENTRY)
433 if (cnp->cn_flags & MAKEENTRY)
/freebsd-9.3-release/sys/fs/nfs/
H A Dnfsdport.h102 (n)->cn_flags = (f); \
/freebsd-9.3-release/sys/fs/coda/
H A Dcoda_vnops.c922 if (!(vtype & CODA_NOCACHE) && (cnp->cn_flags & MAKEENTRY))
936 && (cnp->cn_flags & ISLASTCN) && (error == ENOENT)) {
938 cnp->cn_flags |= SAVENAME;
951 if ((cnp->cn_nameiop == DELETE) && (cnp->cn_flags & ISLASTCN)
953 cnp->cn_flags |= SAVENAME;
964 if (cnp->cn_flags & ISDOTDOT) {
1071 if (cnp->cn_flags & MAKEENTRY)
1073 if (cnp->cn_flags & LOCKLEAF)
1082 if (cnp->cn_flags & MAKEENTRY)
1311 if (cnp->cn_flags
[all...]
/freebsd-9.3-release/sys/fs/nwfs/
H A Dnwfs_vnops.c394 * only if the SAVESTART bit in cn_flags is clear on success.
441 if (cnp->cn_flags & MAKEENTRY)
817 int flags = cnp->cn_flags;
867 cnp->cn_flags |= SAVENAME;
914 cnp->cn_flags |= SAVENAME;
933 cnp->cn_flags |= SAVENAME; /* I free it later */
943 cnp->cn_flags |= SAVENAME;
962 if ((cnp->cn_flags & MAKEENTRY)/* && !islastcn*/) {
/freebsd-9.3-release/sys/ufs/ufs/
H A Dufs_lookup.c241 int flags = cnp->cn_flags;
459 cnp->cn_flags |= ISWHITEOUT;
493 (cnp->cn_flags & DOWHITEOUT) &&
494 (cnp->cn_flags & ISWHITEOUT))) &&
547 cnp->cn_flags |= SAVENAME;
553 if ((cnp->cn_flags & MAKEENTRY) && nameiop != CREATE)
679 cnp->cn_flags |= SAVENAME;
758 if (cnp->cn_flags & MAKEENTRY)
839 if ((cnp->cn_flags & SAVENAME) == 0)
H A Dufs_vnops.c961 error = ufs_dirremove(dvp, ip, ap->a_cnp->cn_flags, 0);
1001 if ((cnp->cn_flags & HASBUF) == 0)
1078 if ((cnp->cn_flags & SAVENAME) == 0)
1098 cnp->cn_flags &= ~DOWHITEOUT;
1099 error = ufs_dirremove(dvp, NULL, cnp->cn_flags, 0);
1164 if ((tcnp->cn_flags & HASBUF) == 0 ||
1165 (fcnp->cn_flags & HASBUF) == 0)
1317 (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT) {
1364 if ((tcnp->cn_flags
[all...]
/freebsd-9.3-release/sys/fs/ext2fs/
H A Dext2_vnops.c672 if ((cnp->cn_flags & HASBUF) == 0)
741 if ((tcnp->cn_flags & HASBUF) == 0 ||
742 (fcnp->cn_flags & HASBUF) == 0)
799 dp == ip || (fcnp->cn_flags | tcnp->cn_flags) & ISDOTDOT ||
980 fcnp->cn_flags &= ~MODMASK;
981 fcnp->cn_flags |= LOCKPARENT | LOCKLEAF;
1092 if ((cnp->cn_flags & HASBUF) == 0)
1137 if (cnp->cn_flags & ISWHITEOUT)
1539 if ((cnp->cn_flags
[all...]
H A Dext2_lookup.c321 int flags = cnp->cn_flags;
511 cnp->cn_flags |= SAVENAME;
517 if ((cnp->cn_flags & MAKEENTRY) && nameiop != CREATE)
622 cnp->cn_flags |= SAVENAME;
696 if (cnp->cn_flags & MAKEENTRY)
873 if ((cnp->cn_flags & SAVENAME) == 0)
/freebsd-9.3-release/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c127 * only if the SAVESTART bit in cn_flags is clear on success.
167 if ((cnp->cn_flags & HASBUF) == 0)
1012 if ((tcnp->cn_flags & HASBUF) == 0 ||
1013 (fcnp->cn_flags & HASBUF) == 0)
1060 (fcnp->cn_flags & ISDOTDOT) ||
1061 (tcnp->cn_flags & ISDOTDOT) ||
1109 if ((tcnp->cn_flags & SAVESTART) == 0)
1158 fcnp->cn_flags &= ~MODMASK;
1159 fcnp->cn_flags |= LOCKPARENT | LOCKLEAF;
1160 if ((fcnp->cn_flags
[all...]
H A Dmsdosfs_lookup.c114 int flags = cnp->cn_flags;
386 cnp->cn_flags |= SAVENAME;
398 if ((cnp->cn_flags & MAKEENTRY) && nameiop != CREATE)
510 cnp->cn_flags |= SAVENAME;
558 if (cnp->cn_flags & MAKEENTRY)
/freebsd-9.3-release/sys/fs/smbfs/
H A Dsmbfs_vnops.c465 * only if the SAVESTART bit in cn_flags is clear on success.
508 if (cnp->cn_flags & MAKEENTRY)
1095 int flags = cnp->cn_flags;
1160 cnp->cn_flags |= SAVENAME;
1206 cnp->cn_flags |= SAVENAME;
1229 cnp->cn_flags |= SAVENAME;
1242 cnp->cn_flags |= SAVENAME;
1262 if ((cnp->cn_flags & MAKEENTRY)/* && !islastcn*/) {
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_replay.c482 cn.cn_flags = SAVENAME;
569 cn.cn_flags = ISLASTCN | SAVENAME;
625 cn.cn_flags = SAVENAME;
669 scn.cn_flags = ISLASTCN | SAVENAME;
683 tcn.cn_flags = ISLASTCN | SAVENAME;
/freebsd-9.3-release/sys/fs/nfsserver/
H A Dnfs_nfsdport.c339 int lockleaf = (cnp->cn_flags & LOCKLEAF) != 0, linklen;
363 cnp->cn_flags |= RDONLY;
392 cnp->cn_flags |= NOCROSSMOUNT;
407 cnp->cn_flags |= LOCKLEAF;
425 if ((cnp->cn_flags & ISSYMLINK) == 0) {
426 if ((cnp->cn_flags & (SAVENAME | SAVESTART)) == 0)
436 if ((cnp->cn_flags & LOCKPARENT) && ndp->ni_pathlen == 1)
510 cnp->cn_flags &= ~LOCKLEAF;
518 cnp->cn_flags &= ~HASBUF;
519 } else if ((ndp->ni_cnd.cn_flags
[all...]
/freebsd-9.3-release/sys/fs/pseudofs/
H A Dpseudofs_vnops.c456 if ((cnp->cn_flags & ISLASTCN) &&
481 if (cnp->cn_flags & ISDOTDOT) {
559 if (cnp->cn_flags & ISDOTDOT) {
568 if (cnp->cn_flags & MAKEENTRY && !(vn->v_iflag & VI_DOOMED))
572 if (cnp->cn_flags & ISDOTDOT) {
/freebsd-9.3-release/sys/fs/ntfs/
H A Dntfs_vnops.c622 if ((cnp->cn_flags & ISLASTCN) &&
634 } else if (cnp->cn_flags & ISDOTDOT) {
665 if (cnp->cn_flags & MAKEENTRY)

Completed in 240 milliseconds

12