S_IFMT 328 arch/s390/kernel/debug.c rc->mode = mode & ~S_IFMT; S_IFMT 2867 drivers/staging/exfat/exfat_super.c perm = *mode_ptr & ~(S_IFMT | mask); S_IFMT 2889 drivers/staging/exfat/exfat_super.c *mode_ptr &= S_IFMT | perm; S_IFMT 261 fs/9p/vfs_inode.c switch (mode & S_IFMT) { S_IFMT 333 fs/9p/vfs_inode.c mode, mode & S_IFMT); S_IFMT 455 fs/9p/vfs_inode.c if ((inode->i_mode & S_IFMT) != (umode & S_IFMT)) S_IFMT 1412 fs/9p/vfs_inode.c if ((inode->i_mode & S_IFMT) != (umode & S_IFMT)) S_IFMT 62 fs/9p/vfs_inode_dotl.c if ((inode->i_mode & S_IFMT) != (st->st_mode & S_IFMT)) S_IFMT 931 fs/9p/vfs_inode_dotl.c if ((inode->i_mode & S_IFMT) != (st->st_mode & S_IFMT)) S_IFMT 3954 fs/btrfs/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 2968 fs/btrfs/ioctl.c switch (inode->i_mode & S_IFMT) { S_IFMT 2627 fs/btrfs/send.c (int)(mode & S_IFMT)); S_IFMT 749 fs/btrfs/tree-checker.c u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777); S_IFMT 806 fs/btrfs/tree-checker.c if (!is_power_of_2(mode & S_IFMT)) { S_IFMT 810 fs/btrfs/tree-checker.c mode & S_IFMT); S_IFMT 251 fs/ceph/file.c switch (inode->i_mode & S_IFMT) { S_IFMT 909 fs/ceph/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 44 fs/cifs/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 249 fs/cifs/inode.c fattr->cf_mode &= ~S_IFMT; S_IFMT 423 fs/cifs/inode.c if (unlikely(((*pinode)->i_mode & S_IFMT) != S_IFMT 424 fs/cifs/inode.c (fattr.cf_mode & S_IFMT))) { S_IFMT 455 fs/cifs/inode.c fattr->cf_mode &= ~S_IFMT; S_IFMT 944 fs/cifs/inode.c if (unlikely(((*inode)->i_mode & S_IFMT) != S_IFMT 945 fs/cifs/inode.c (fattr.cf_mode & S_IFMT))) { S_IFMT 981 fs/cifs/inode.c if ((inode->i_mode & S_IFMT) != (fattr->cf_mode & S_IFMT)) S_IFMT 290 fs/cifs/link.c fattr->cf_mode &= ~S_IFMT; S_IFMT 120 fs/cifs/readdir.c (inode->i_mode & S_IFMT) == S_IFMT 121 fs/cifs/readdir.c (fattr->cf_mode & S_IFMT)) { S_IFMT 183 fs/cifs/readdir.c fattr->cf_mode &= ~S_IFMT; S_IFMT 543 fs/coda/dir.c if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { S_IFMT 79 fs/cramfs/inode.c switch (cino->mode & S_IFMT) { S_IFMT 102 fs/cramfs/inode.c switch (cramfs_inode->mode & S_IFMT) { S_IFMT 65 fs/crypto/keysetup.c inode->i_ino, (inode->i_mode & S_IFMT)); S_IFMT 381 fs/debugfs/inode.c if (!(mode & S_IFMT)) S_IFMT 26 fs/efivarfs/inode.c switch (mode & S_IFMT) { S_IFMT 144 fs/efs/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 39 fs/erofs/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 78 fs/erofs/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 203 fs/erofs/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 3221 fs/ext4/ext4.h static const unsigned char ext4_type_by_mode[(S_IFMT >> S_SHIFT) + 1] = { S_IFMT 3235 fs/ext4/ext4.h de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; S_IFMT 51 fs/f2fs/dir.c static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = { S_IFMT 63 fs/f2fs/dir.c de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT]; S_IFMT 438 fs/fat/file.c perm = *mode_ptr & ~(S_IFMT | mask); S_IFMT 456 fs/fat/file.c *mode_ptr &= S_IFMT | perm; S_IFMT 252 fs/fuse/dir.c (outarg.attr.mode ^ inode->i_mode) & S_IFMT) S_IFMT 447 fs/fuse/dir.c BUG_ON((mode & S_IFMT) != S_IFREG); S_IFMT 597 fs/fuse/dir.c if ((outarg.attr.mode ^ mode) & S_IFMT) S_IFMT 901 fs/fuse/dir.c stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); S_IFMT 955 fs/fuse/dir.c (inode->i_mode ^ outarg.attr.mode) & S_IFMT) { S_IFMT 1577 fs/fuse/dir.c (inode->i_mode ^ outarg.attr.mode) & S_IFMT) { S_IFMT 158 fs/fuse/inode.c inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); S_IFMT 247 fs/fuse/inode.c inode->i_mode = attr->mode & S_IFMT; S_IFMT 305 fs/fuse/inode.c } else if ((inode->i_mode ^ attr->mode) & S_IFMT) { S_IFMT 205 fs/fuse/readdir.c ((o->attr.mode ^ inode->i_mode) & S_IFMT)) { S_IFMT 372 fs/gfs2/glops.c switch (ip->i_inode.i_mode & S_IFMT) { S_IFMT 478 fs/gfs2/inode.c switch(ip->i_inode.i_mode & S_IFMT) { S_IFMT 670 fs/gfs2/inode.c switch(mode & S_IFMT) { S_IFMT 523 fs/hostfs/hostfs_kern.c switch (st.mode & S_IFMT) { S_IFMT 535 fs/hostfs/hostfs_kern.c init_special_inode(ino, st.mode & S_IFMT, rdev); S_IFMT 786 fs/hugetlbfs/inode.c switch (mode & S_IFMT) { S_IFMT 260 fs/jffs2/dir.c type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; S_IFMT 719 fs/jffs2/dir.c rd->type = (mode & S_IFMT) >> 12; S_IFMT 797 fs/jffs2/dir.c type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; S_IFMT 292 fs/jffs2/fs.c switch (inode->i_mode & S_IFMT) { S_IFMT 1220 fs/jffs2/readinode.c switch(jemode_to_cpu(latest_node->mode) & S_IFMT) { S_IFMT 628 fs/jfs/namei.c filetype = ip->i_mode & S_IFMT; S_IFMT 696 fs/jfs/namei.c type = ip->i_mode & S_IFMT; S_IFMT 2946 fs/namei.c switch (inode->i_mode & S_IFMT) { S_IFMT 3721 fs/namei.c switch (mode & S_IFMT) { S_IFMT 3757 fs/namei.c switch (mode & S_IFMT) { S_IFMT 1045 fs/nfs/dir.c switch (inode->i_mode & S_IFMT) { S_IFMT 2596 fs/nfs/dir.c switch (inode->i_mode & S_IFMT) { S_IFMT 54 fs/nfs/export.c p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; S_IFMT 313 fs/nfs/inode.c if ((S_IFMT & inode->i_mode) != (S_IFMT & fattr->mode)) S_IFMT 1418 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) S_IFMT 1832 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { S_IFMT 1959 fs/nfs/inode.c umode_t newmode = inode->i_mode & S_IFMT; S_IFMT 294 fs/nfs/nfs2xdr.c fattr->mode = (fattr->mode & ~S_IFMT) | S_IFIFO; S_IFMT 705 fs/nfs/nfs3proc.c switch (sattr->ia_mode & S_IFMT) { S_IFMT 636 fs/nfs/nfs3xdr.c fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; S_IFMT 2435 fs/nfs/nfs4proc.c switch (data->o_res.f_attr->mode & S_IFMT) { S_IFMT 3853 fs/nfs/nfs4xdr.c *mode = tmp & ~S_IFMT; S_IFMT 274 fs/nfs/proc.c sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR; S_IFMT 235 fs/nfsd/nfs3proc.c attr->ia_mode &= ~S_IFMT; S_IFMT 240 fs/nfsd/nfs3proc.c attr->ia_mode = (attr->ia_mode & ~S_IFMT) | S_IFREG; S_IFMT 171 fs/nfsd/nfs3xdr.c *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); S_IFMT 399 fs/nfsd/nfs4xdr.c iattr->ia_mode &= (S_IFMT | S_IALLUGO); S_IFMT 491 fs/nfsd/nfs4xdr.c iattr->ia_mode = dummy32 & (S_IFMT | S_IALLUGO); S_IFMT 2256 fs/nfsd/nfs4xdr.c switch (mode & S_IFMT) { S_IFMT 1163 fs/nfsd/nfsctl.c switch (mode & S_IFMT) { S_IFMT 66 fs/nfsd/nfsfh.c umode_t mode = d_inode(dentry)->i_mode & S_IFMT; S_IFMT 303 fs/nfsd/nfsproc.c type = attr->ia_mode & S_IFMT; S_IFMT 304 fs/nfsd/nfsproc.c mode = attr->ia_mode & ~S_IFMT; S_IFMT 309 fs/nfsd/nfsproc.c type = inode->i_mode & S_IFMT; S_IFMT 335 fs/nfsd/nfsproc.c type = inode->i_mode & S_IFMT; S_IFMT 336 fs/nfsd/nfsproc.c mode = inode->i_mode & ~S_IFMT; S_IFMT 365 fs/nfsd/nfsproc.c if (inode && type != (inode->i_mode & S_IFMT)) S_IFMT 138 fs/nfsd/nfsxdr.c type = (stat->mode & S_IFMT); S_IFMT 1812 fs/nfsd/vfs.c type = d_inode(rdentry)->i_mode & S_IFMT; S_IFMT 246 fs/nilfs2/dir.c nilfs_type_by_mode[S_IFMT >> S_SHIFT] = { S_IFMT 260 fs/nilfs2/dir.c de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; S_IFMT 1219 fs/ntfs/inode.c vi->i_mode = base_vi->i_mode & ~S_IFMT; S_IFMT 1484 fs/ntfs/inode.c vi->i_mode = base_vi->i_mode & ~S_IFMT; S_IFMT 405 fs/ocfs2/dlmfs/dlmfs.c switch (mode & S_IFMT) { S_IFMT 341 fs/ocfs2/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 55 fs/omfs/inode.c switch (mode & S_IFMT) { S_IFMT 1017 fs/orangefs/inode.c switch (inode->i_mode & S_IFMT) { S_IFMT 536 fs/overlayfs/copy_up.c .mode = c->stat.mode & S_IFMT, S_IFMT 162 fs/overlayfs/dir.c switch (attr->mode & S_IFMT) { S_IFMT 583 fs/overlayfs/inode.c switch (mode & S_IFMT) { S_IFMT 348 fs/overlayfs/namei.c ((d_inode(origin)->i_mode ^ d_inode(upperdentry)->i_mode) & S_IFMT)) S_IFMT 366 fs/overlayfs/namei.c upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, S_IFMT 367 fs/overlayfs/namei.c d_inode(origin)->i_mode & S_IFMT); S_IFMT 595 fs/overlayfs/namei.c index, d_inode(index)->i_mode & S_IFMT, err); S_IFMT 600 fs/overlayfs/namei.c index, d_inode(index)->i_mode & S_IFMT, S_IFMT 724 fs/overlayfs/namei.c ((inode->i_mode ^ d_inode(origin)->i_mode) & S_IFMT)) { S_IFMT 733 fs/overlayfs/namei.c index, d_inode(index)->i_mode & S_IFMT, S_IFMT 734 fs/overlayfs/namei.c d_inode(origin)->i_mode & S_IFMT); S_IFMT 522 fs/proc/generic.c if ((mode & S_IFMT) == 0) S_IFMT 864 fs/proc/proc_sysctl.c stat->mode = (stat->mode & S_IFMT) | table->mode; S_IFMT 75 fs/ramfs/inode.c switch (mode & S_IFMT) { S_IFMT 397 fs/tracefs/inode.c if (!(mode & S_IFMT)) S_IFMT 509 fs/tracefs/inode.c switch (dentry->d_inode->i_mode & S_IFMT) { S_IFMT 115 fs/ubifs/dir.c switch (mode & S_IFMT) { S_IFMT 418 fs/ubifs/journal.c switch (mode & S_IFMT) { S_IFMT 151 fs/ubifs/super.c switch (inode->i_mode & S_IFMT) { S_IFMT 164 fs/ufs/util.h switch (mode & S_IFMT) { S_IFMT 31 fs/xfs/libxfs/xfs_dir2.c switch (mode & S_IFMT) { S_IFMT 502 fs/xfs/libxfs/xfs_inode_buf.c switch (mode & S_IFMT) { S_IFMT 564 fs/xfs/libxfs/xfs_inode_buf.c if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) S_IFMT 53 fs/xfs/libxfs/xfs_inode_fork.c switch (inode->i_mode & S_IFMT) { S_IFMT 710 fs/xfs/libxfs/xfs_inode_fork.c switch (VFS_I(ip)->i_mode & S_IFMT) { S_IFMT 221 fs/xfs/scrub/inode.c switch (mode & S_IFMT) { S_IFMT 1742 fs/xfs/xfs_bmap_util.c if ((VFS_I(ip)->i_mode & S_IFMT) != (VFS_I(tip)->i_mode & S_IFMT)) { S_IFMT 87 fs/xfs/xfs_icache.c switch (VFS_I(ip)->i_mode & S_IFMT) { S_IFMT 854 fs/xfs/xfs_inode.c switch (mode & S_IFMT) { S_IFMT 539 fs/xfs/xfs_iops.c switch (inode->i_mode & S_IFMT) { S_IFMT 573 fs/xfs/xfs_iops.c inode->i_mode &= S_IFMT; S_IFMT 574 fs/xfs/xfs_iops.c inode->i_mode |= mode & ~S_IFMT; S_IFMT 1323 fs/xfs/xfs_iops.c switch (inode->i_mode & S_IFMT) { S_IFMT 238 fs/xfs/xfs_symlink.c error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, S_IFMT 420 fs/xfs/xfs_symlink.c VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; S_IFMT 30 include/linux/fs_types.h #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) S_IFMT 31 include/linux/fs_types.h #define S_DT_MASK (S_IFMT >> S_DT_SHIFT) S_IFMT 223 include/uapi/linux/gfs2_ondisk.h #define DT2IF(dt) (((dt) << 12) & S_IFMT) S_IFMT 224 include/uapi/linux/gfs2_ondisk.h #define IF2DT(sif) (((sif) & S_IFMT) >> 12) S_IFMT 21 include/uapi/linux/stat.h #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) S_IFMT 22 include/uapi/linux/stat.h #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) S_IFMT 23 include/uapi/linux/stat.h #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) S_IFMT 24 include/uapi/linux/stat.h #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) S_IFMT 25 include/uapi/linux/stat.h #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) S_IFMT 26 include/uapi/linux/stat.h #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) S_IFMT 27 include/uapi/linux/stat.h #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) S_IFMT 73 init/initramfs.c if (((*p)->mode ^ mode) & S_IFMT) S_IFMT 298 init/initramfs.c if (!vfs_lstat(path, &st) && (st.mode ^ fmode) & S_IFMT) { S_IFMT 422 kernel/auditfilter.c if (f->val & ~S_IFMT) S_IFMT 186 kernel/auditsc.c ((n->mode & S_IFMT) == mode)) S_IFMT 87 kernel/bpf/inode.c switch (mode & S_IFMT) { S_IFMT 829 mm/nommu.c switch (file_inode(file)->i_mode & S_IFMT) { S_IFMT 2269 mm/shmem.c switch (mode & S_IFMT) { S_IFMT 476 net/sunrpc/rpc_pipe.c switch (mode & S_IFMT) { S_IFMT 667 net/sunrpc/rpc_pipe.c switch (d_inode(dentry)->i_mode & S_IFMT) { S_IFMT 707 net/sunrpc/rpc_pipe.c switch (files[i].mode & S_IFMT) { S_IFMT 88 samples/vfs/test-statx.c switch (stx->stx_mode & S_IFMT) { S_IFMT 97 samples/vfs/test-statx.c printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT); S_IFMT 111 samples/vfs/test-statx.c switch (stx->stx_mode & S_IFMT) { S_IFMT 243 security/apparmor/apparmorfs.c if (!(mode & S_IFMT)) S_IFMT 116 security/inode.c if (!(mode & S_IFMT)) S_IFMT 1148 security/selinux/hooks.c switch (mode & S_IFMT) { S_IFMT 120 security/tomoyo/audit.c switch (mode & S_IFMT) { S_IFMT 1023 security/tomoyo/condition.c value = stat->mode & S_IFMT; S_IFMT 226 security/tomoyo/tomoyo.c switch (mode & S_IFMT) { S_IFMT 238 security/tomoyo/tomoyo.c switch (mode & S_IFMT) { S_IFMT 21 tools/include/uapi/linux/stat.h #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) S_IFMT 22 tools/include/uapi/linux/stat.h #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) S_IFMT 23 tools/include/uapi/linux/stat.h #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) S_IFMT 24 tools/include/uapi/linux/stat.h #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) S_IFMT 25 tools/include/uapi/linux/stat.h #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) S_IFMT 26 tools/include/uapi/linux/stat.h #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) S_IFMT 27 tools/include/uapi/linux/stat.h #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) S_IFMT 217 tools/perf/util/data.c return (st.st_mode & S_IFMT) == S_IFDIR;