Symbol: S_IFMT
arch/s390/kernel/debug.c
315
rc->mode = mode & ~S_IFMT;
fs/9p/vfs_inode.c
270
switch (mode & S_IFMT) {
fs/9p/vfs_inode.c
328
mode, mode & S_IFMT);
fs/anon_inodes.c
56
stat->mode &= ~S_IFMT;
fs/btrfs/inode.c
4227
switch (vfs_inode->i_mode & S_IFMT) {
fs/btrfs/ioctl.c
2396
switch (inode->i_mode & S_IFMT) {
fs/btrfs/send.c
2828
(int)(mode & S_IFMT));
fs/btrfs/tree-checker.c
1132
u32 valid_mask = (S_IFMT | S_ISUID | S_ISGID | S_ISVTX | 0777);
fs/btrfs/tree-checker.c
1185
if (!has_single_bit_set(mode & S_IFMT)) {
fs/btrfs/tree-checker.c
1189
mode & S_IFMT);
fs/ceph/file.c
268
switch (inode->i_mode & S_IFMT) {
fs/ceph/inode.c
1211
switch (inode->i_mode & S_IFMT) {
fs/coda/cnode.c
81
} else if ((inode->i_mode & S_IFMT) != inode_type) {
fs/coda/dir.c
535
if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) {
fs/cramfs/inode.c
102
switch (cramfs_inode->mode & S_IFMT) {
fs/cramfs/inode.c
79
switch (cino->mode & S_IFMT) {
fs/crypto/keysetup.c
95
inode->i_ino, (inode->i_mode & S_IFMT));
fs/debugfs/inode.c
425
if (!(mode & S_IFMT))
fs/efivarfs/inode.c
34
switch (mode & S_IFMT) {
fs/efs/inode.c
145
switch (inode->i_mode & S_IFMT) {
fs/erofs/inode.c
153
switch (inode->i_mode & S_IFMT) {
fs/erofs/inode.c
233
switch (inode->i_mode & S_IFMT) {
fs/exfat/file.c
119
perm = *mode_ptr & ~(S_IFMT | mask);
fs/exfat/file.c
141
*mode_ptr &= S_IFMT | perm;
fs/ext4/ext4.h
3726
static const unsigned char ext4_type_by_mode[(S_IFMT >> S_SHIFT) + 1] = {
fs/ext4/ext4.h
3740
de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
fs/fat/file.c
437
perm = *mode_ptr & ~(S_IFMT | mask);
fs/fat/file.c
455
*mode_ptr &= S_IFMT | perm;
fs/fuse/dir.c
1012
if ((outarg.attr.mode ^ mode) & S_IFMT)
fs/fuse/dir.c
1371
stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
fs/fuse/dir.c
828
BUG_ON((mode & S_IFMT) != S_IFREG);
fs/fuse/inode.c
252
inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777);
fs/fuse/inode.c
423
inode->i_mode = attr->mode & S_IFMT;
fs/gfs2/glops.c
409
switch (mode & S_IFMT) {
fs/gfs2/inode.c
594
switch(ip->i_inode.i_mode & S_IFMT) {
fs/gfs2/inode.c
795
switch(mode & S_IFMT) {
fs/hfsplus/inode.c
194
switch (mode & S_IFMT) {
fs/hostfs/hostfs_kern.c
528
switch (st->mode & S_IFMT) {
fs/hostfs/hostfs_kern.c
540
init_special_inode(ino, st->mode & S_IFMT, rdev);
fs/hostfs/hostfs_kern.c
565
(inode->i_mode & S_IFMT) == (st->mode & S_IFMT) &&
fs/hugetlbfs/inode.c
955
switch (mode & S_IFMT) {
fs/inode.c
2627
switch (inode->i_mode & S_IFMT) {
fs/jffs2/dir.c
267
type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12;
fs/jffs2/dir.c
737
rd->type = (mode & S_IFMT) >> 12;
fs/jffs2/dir.c
817
type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12;
fs/jffs2/fs.c
293
switch (inode->i_mode & S_IFMT) {
fs/jffs2/readinode.c
1236
switch(jemode_to_cpu(latest_node->mode) & S_IFMT) {
fs/jfs/namei.c
631
filetype = ip->i_mode & S_IFMT;
fs/jfs/namei.c
699
type = ip->i_mode & S_IFMT;
fs/namei.c
4141
mode &= (mask_perms & ~S_IFMT);
fs/namei.c
4142
mode |= (type & S_IFMT);
fs/namei.c
4226
switch (inode->i_mode & S_IFMT) {
fs/namei.c
5107
switch (mode & S_IFMT) {
fs/namei.c
5146
switch (mode & S_IFMT) {
fs/nfs/dir.c
1602
switch (inode->i_mode & S_IFMT) {
fs/nfs/dir.c
3391
switch (inode->i_mode & S_IFMT) {
fs/nfs/export.c
54
p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT;
fs/nfs/inode.c
2429
umode_t newmode = inode->i_mode & S_IFMT;
fs/nfs/nfs2xdr.c
291
fattr->mode = (fattr->mode & ~S_IFMT) | S_IFIFO;
fs/nfs/nfs3proc.c
747
switch (sattr->ia_mode & S_IFMT) {
fs/nfs/nfs3xdr.c
632
fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode;
fs/nfs/nfs4proc.c
2545
switch (data->o_res.f_attr->mode & S_IFMT) {
fs/nfs/nfs4xdr.c
3967
*mode = tmp & ~S_IFMT;
fs/nfs/proc.c
284
sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR;
fs/nfsd/nfs3xdr.c
346
*p++ = cpu_to_be32(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]);
fs/nfsd/nfs4xdr.c
3214
switch (args->stat.mode & S_IFMT) {
fs/nfsd/nfs4xdr.c
528
iattr->ia_mode &= (S_IFMT | S_IALLUGO);
fs/nfsd/nfs4xdr.c
620
iattr->ia_mode = mode & (S_IFMT | S_IALLUGO);
fs/nfsd/nfsfh.c
67
umode_t mode = d_inode(dentry)->i_mode & S_IFMT;
fs/nfsd/nfsproc.c
338
type = attr->ia_mode & S_IFMT;
fs/nfsd/nfsproc.c
339
mode = attr->ia_mode & ~S_IFMT;
fs/nfsd/nfsproc.c
344
type = inode->i_mode & S_IFMT;
fs/nfsd/nfsproc.c
371
type = inode->i_mode & S_IFMT;
fs/nfsd/nfsproc.c
372
mode = inode->i_mode & ~S_IFMT;
fs/nfsd/nfsxdr.c
219
int type = stat->mode & S_IFMT;
fs/nfsd/vfs.c
2053
type = d_inode(tfhp->fh_dentry)->i_mode & S_IFMT;
fs/nfsd/vfs.c
2195
type = d_inode(rd.old_dentry)->i_mode & S_IFMT;
fs/nfsd/vfs.c
2198
type = d_inode(rd.new_dentry)->i_mode & S_IFMT;
fs/nfsd/vfs.c
2310
type = d_inode(rdentry)->i_mode & S_IFMT;
fs/ocfs2/dlmfs/dlmfs.c
368
switch (mode & S_IFMT) {
fs/ocfs2/inode.c
417
switch (inode->i_mode & S_IFMT) {
fs/omfs/inode.c
57
switch (mode & S_IFMT) {
fs/orangefs/inode.c
963
switch (inode->i_mode & S_IFMT) {
fs/overlayfs/copy_up.c
768
.mode = c->stat.mode & S_IFMT,
fs/overlayfs/dir.c
177
switch (attr->mode & S_IFMT) {
fs/overlayfs/inode.c
901
switch (mode & S_IFMT) {
fs/overlayfs/namei.c
498
upperdentry, d_inode(upperdentry)->i_mode & S_IFMT,
fs/overlayfs/namei.c
499
d_inode(origin)->i_mode & S_IFMT);
fs/overlayfs/namei.c
726
index, d_inode(index)->i_mode & S_IFMT, err);
fs/overlayfs/namei.c
731
index, d_inode(index)->i_mode & S_IFMT,
fs/overlayfs/namei.c
862
index, d_inode(index)->i_mode & S_IFMT,
fs/overlayfs/namei.c
863
d_inode(origin)->i_mode & S_IFMT);
fs/proc/generic.c
571
if ((mode & S_IFMT) == 0)
fs/proc/proc_sysctl.c
851
stat->mode = (stat->mode & S_IFMT) | table->mode;
fs/ramfs/inode.c
69
switch (mode & S_IFMT) {
fs/smb/client/fscache.c
137
key.type = (inode->i_mode & S_IFMT) >> 12;
fs/smb/client/inode.c
273
fattr->cf_mode &= ~S_IFMT;
fs/smb/client/inode.c
48
switch (inode->i_mode & S_IFMT) {
fs/smb/client/inode.c
537
fattr->cf_mode &= ~S_IFMT;
fs/smb/client/link.c
212
fattr->cf_mode &= ~S_IFMT;
fs/smb/client/readdir.c
226
fattr->cf_mode &= ~S_IFMT;
fs/smb/client/readdir.c
269
switch (fattr->cf_mode & S_IFMT) {
fs/smb/client/readdir.c
91
switch (fattr->cf_mode & S_IFMT) {
fs/smb/client/reparse.h
53
switch (mode & S_IFMT) {
fs/smb/client/reparse.h
65
switch (mode & S_IFMT) {
fs/smb/client/smb2ops.c
5205
switch (mode & S_IFMT) {
fs/smb/server/smb2pdu.c
4084
switch (ksmbd_kstat->kstat->mode & S_IFMT) {
fs/smb/server/smb2pdu.c
5330
switch (stat.mode & S_IFMT) {
fs/squashfs/inode.c
72
if (inode->i_mode & S_IFMT)
fs/tracefs/event_inode.c
375
if (!(mode & S_IFMT))
fs/tracefs/inode.c
642
if (!(mode & S_IFMT))
fs/ubifs/dir.c
115
switch (mode & S_IFMT) {
fs/ubifs/journal.c
545
switch (mode & S_IFMT) {
fs/ubifs/super.c
165
switch (inode->i_mode & S_IFMT) {
fs/ufs/util.h
158
switch (mode & S_IFMT) {
fs/xfs/libxfs/xfs_dir2.c
47
switch (mode & S_IFMT) {
fs/xfs/libxfs/xfs_ialloc.c
1901
umode_t mode = args->mode & S_IFMT;
fs/xfs/libxfs/xfs_inode_buf.c
693
switch (mode & S_IFMT) {
fs/xfs/libxfs/xfs_inode_buf.c
755
if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG)
fs/xfs/libxfs/xfs_inode_fork.c
250
switch (inode->i_mode & S_IFMT) {
fs/xfs/libxfs/xfs_inode_fork.c
676
switch (VFS_I(ip)->i_mode & S_IFMT) {
fs/xfs/libxfs/xfs_inode_util.c
322
switch (args->mode & S_IFMT) {
fs/xfs/scrub/bmap_repair.c
880
switch (VFS_I(sc->ip)->i_mode & S_IFMT) {
fs/xfs/scrub/inode.c
435
switch (mode & S_IFMT) {
fs/xfs/scrub/inode_repair.c
1051
switch (mode & S_IFMT) {
fs/xfs/scrub/inode_repair.c
1167
switch (mode & S_IFMT) {
fs/xfs/scrub/inode_repair.c
1187
switch (mode & S_IFMT) {
fs/xfs/scrub/inode_repair.c
651
switch (mode & S_IFMT) {
fs/xfs/xfs_bmap_util.c
1533
if ((VFS_I(ip)->i_mode & S_IFMT) != (VFS_I(tip)->i_mode & S_IFMT)) {
fs/xfs/xfs_icache.c
144
switch (VFS_I(ip)->i_mode & S_IFMT) {
fs/xfs/xfs_inode.c
2969
switch (ip->i_vnode.i_mode & S_IFMT) {
fs/xfs/xfs_iops.c
1508
switch (inode->i_mode & S_IFMT) {
fs/xfs/xfs_iops.c
735
switch (inode->i_mode & S_IFMT) {
fs/xfs/xfs_itable.c
113
buf->bs_mode = inode->i_mode & S_IFMT;
fs/xfs/xfs_symlink.c
291
VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG;
fs/xfs/xfs_symlink.c
96
.mode = S_IFLNK | (mode & ~S_IFMT),
include/linux/fs.h
2696
return (inode->i_mode ^ mode) & S_IFMT;
include/linux/fs_dirent.h
33
#define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT)
include/linux/fs_dirent.h
34
#define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
include/trace/events/f2fs.h
263
show_inode_type(__entry->mode & S_IFMT),
include/uapi/linux/gfs2_ondisk.h
229
#define DT2IF(dt) (((dt) << 12) & S_IFMT)
include/uapi/linux/gfs2_ondisk.h
230
#define IF2DT(sif) (((sif) & S_IFMT) >> 12)
include/uapi/linux/stat.h
21
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
include/uapi/linux/stat.h
22
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
include/uapi/linux/stat.h
23
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
include/uapi/linux/stat.h
24
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
include/uapi/linux/stat.h
25
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
include/uapi/linux/stat.h
26
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
include/uapi/linux/stat.h
27
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
init/initramfs.c
101
if (((*p)->mode ^ mode) & S_IFMT)
init/initramfs.c
338
(st.mode ^ fmode) & S_IFMT) {
kernel/auditfilter.c
430
if (f->val & ~S_IFMT)
kernel/auditsc.c
207
((n->mode & S_IFMT) == mode))
kernel/bpf/inode.c
108
switch (mode & S_IFMT) {
mm/nommu.c
735
switch (file_inode(file)->i_mode & S_IFMT) {
mm/shmem.c
3113
switch (mode & S_IFMT) {
net/sunrpc/rpc_pipe.c
476
switch (mode & S_IFMT) {
net/sunrpc/rpc_pipe.c
587
switch (files[i].mode & S_IFMT) {
samples/vfs/test-statx.c
105
printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT);
samples/vfs/test-statx.c
119
switch (stx->stx_mode & S_IFMT) {
samples/vfs/test-statx.c
96
switch (stx->stx_mode & S_IFMT) {
security/apparmor/apparmorfs.c
345
if (!(mode & S_IFMT))
security/inode.c
119
if (!(mode & S_IFMT))
security/landlock/fs.c
974
switch (mode & S_IFMT) {
security/selinux/hooks.c
1146
switch (mode & S_IFMT) {
security/tomoyo/audit.c
120
switch (mode & S_IFMT) {
security/tomoyo/condition.c
1023
value = stat->mode & S_IFMT;
security/tomoyo/tomoyo.c
232
switch (mode & S_IFMT) {
security/tomoyo/tomoyo.c
244
switch (mode & S_IFMT) {
tools/include/nolibc/types.h
44
#if !defined(S_IFMT)
tools/include/nolibc/types.h
54
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
tools/include/nolibc/types.h
55
#define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
tools/include/nolibc/types.h
56
#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
tools/include/nolibc/types.h
57
#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
tools/include/nolibc/types.h
58
#define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
tools/include/nolibc/types.h
59
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
tools/include/nolibc/types.h
60
#define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
tools/include/uapi/linux/stat.h
21
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
tools/include/uapi/linux/stat.h
22
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
tools/include/uapi/linux/stat.h
23
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
tools/include/uapi/linux/stat.h
24
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
tools/include/uapi/linux/stat.h
25
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
tools/include/uapi/linux/stat.h
26
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
tools/include/uapi/linux/stat.h
27
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
tools/perf/builtin-daemon.c
273
if ((st.st_mode & S_IFMT) != S_IFDIR) {
tools/perf/tests/tests-scripts.c
53
if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) {
tools/perf/trace/beauty/include/uapi/linux/stat.h
21
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
tools/perf/trace/beauty/include/uapi/linux/stat.h
22
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
tools/perf/trace/beauty/include/uapi/linux/stat.h
23
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
tools/perf/trace/beauty/include/uapi/linux/stat.h
24
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
tools/perf/trace/beauty/include/uapi/linux/stat.h
25
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
tools/perf/trace/beauty/include/uapi/linux/stat.h
26
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
tools/perf/trace/beauty/include/uapi/linux/stat.h
27
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
tools/perf/util/data.c
239
return (st.st_mode & S_IFMT) == S_IFDIR;
tools/perf/util/drm_pmu.c
430
if ((stat.st_mode & S_IFMT) != S_IFCHR || major(stat.st_rdev) != 226)
tools/testing/selftests/bpf/progs/profiler.inc.h
34
#define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK)
tools/testing/selftests/bpf/progs/profiler.inc.h
35
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
tools/testing/selftests/bpf/progs/profiler.inc.h
36
#define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR)
tools/testing/selftests/bpf/progs/profiler.inc.h
37
#define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK)
tools/testing/selftests/bpf/progs/profiler.inc.h
38
#define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO)
tools/testing/selftests/bpf/progs/profiler.inc.h
39
#define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
tools/testing/selftests/net/mptcp/mptcp_connect.c
846
if ((sb.st_mode & S_IFMT) != S_IFREG) {