/Linux-v5.10/tools/include/uapi/linux/ |
D | stat.h | 9 #define S_IFMT 00170000 macro 21 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 26 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 27 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
/Linux-v5.10/include/uapi/linux/ |
D | stat.h | 9 #define S_IFMT 00170000 macro 21 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 22 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 24 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 26 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 27 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
D | gfs2_ondisk.h | 229 #define DT2IF(dt) (((dt) << 12) & S_IFMT) 230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
|
/Linux-v5.10/include/linux/ |
D | fs_types.h | 30 #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) 31 #define S_DT_MASK (S_IFMT >> S_DT_SHIFT)
|
/Linux-v5.10/samples/vfs/ |
D | test-statx.c | 90 switch (stx->stx_mode & S_IFMT) { in dump_statx() 99 printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT); in dump_statx() 113 switch (stx->stx_mode & S_IFMT) { in dump_statx()
|
/Linux-v5.10/fs/overlayfs/ |
D | namei.c | 369 ((d_inode(origin)->i_mode ^ d_inode(upperdentry)->i_mode) & S_IFMT)) in ovl_check_origin_fh() 387 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 388 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh() 602 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index() 607 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index() 727 ((inode->i_mode ^ d_inode(origin)->i_mode) & S_IFMT)) { in ovl_lookup_index() 736 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index() 737 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
|
/Linux-v5.10/fs/erofs/ |
D | inode.c | 88 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 128 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 241 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
|
/Linux-v5.10/fs/nfsd/ |
D | nfsproc.c | 317 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 318 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 323 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 349 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 350 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create() 379 if (inode && type != (inode->i_mode & S_IFMT)) in nfsd_proc_create()
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | profiler.inc.h | 20 #define S_IFMT 00170000 macro 31 #define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK) 32 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) 33 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR) 34 #define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK) 35 #define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO) 36 #define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
|
/Linux-v5.10/fs/9p/ |
D | vfs_inode.c | 260 switch (mode & S_IFMT) { in v9fs_init_inode() 332 mode, mode & S_IFMT); in v9fs_init_inode() 401 if ((inode->i_mode & S_IFMT) != (umode & S_IFMT)) in v9fs_test_inode() 1363 if ((inode->i_mode & S_IFMT) != (umode & S_IFMT)) in v9fs_refresh_inode()
|
D | vfs_inode_dotl.c | 62 if ((inode->i_mode & S_IFMT) != (st->st_mode & S_IFMT)) in v9fs_test_inode_dotl() 936 if ((inode->i_mode & S_IFMT) != (st->st_mode & S_IFMT)) in v9fs_refresh_inode_dotl()
|
/Linux-v5.10/fs/efivarfs/ |
D | inode.c | 27 switch (mode & S_IFMT) { in efivarfs_get_inode()
|
/Linux-v5.10/security/tomoyo/ |
D | tomoyo.c | 220 switch (mode & S_IFMT) { in tomoyo_path_mknod() 232 switch (mode & S_IFMT) { in tomoyo_path_mknod()
|
/Linux-v5.10/fs/exfat/ |
D | file.c | 67 perm = *mode_ptr & ~(S_IFMT | mask); in exfat_sanitize_mode() 89 *mode_ptr &= S_IFMT | perm; in exfat_sanitize_mode()
|
/Linux-v5.10/fs/xfs/ |
D | xfs_symlink.c | 226 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, in xfs_symlink() 404 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
|
D | xfs_iops.c | 583 switch (inode->i_mode & S_IFMT) { in xfs_vn_getattr() 608 inode->i_mode &= S_IFMT; in xfs_setattr_mode() 609 inode->i_mode |= mode & ~S_IFMT; in xfs_setattr_mode() 1378 switch (inode->i_mode & S_IFMT) { in xfs_setup_iops()
|
/Linux-v5.10/fs/cifs/ |
D | inode.c | 46 switch (inode->i_mode & S_IFMT) { 255 fattr->cf_mode &= ~S_IFMT; 428 if (unlikely(((*pinode)->i_mode & S_IFMT) != 429 (fattr.cf_mode & S_IFMT))) { 460 fattr->cf_mode &= ~S_IFMT; 1099 if (unlikely(((*inode)->i_mode & S_IFMT) != 1100 (fattr.cf_mode & S_IFMT))) { 1212 if (unlikely(((*inode)->i_mode & S_IFMT) != 1213 (fattr.cf_mode & S_IFMT))) { 1246 if ((inode->i_mode & S_IFMT) != (fattr->cf_mode & S_IFMT))
|
D | readdir.c | 121 (inode->i_mode & S_IFMT) == in cifs_prime_dcache() 122 (fattr->cf_mode & S_IFMT)) { in cifs_prime_dcache() 230 fattr->cf_mode &= ~S_IFMT; in cifs_fill_common_info() 270 fattr->cf_mode = le32_to_cpu(info->Mode) & ~S_IFMT; in cifs_posix_to_fattr()
|
/Linux-v5.10/fs/nfs/ |
D | inode.c | 324 if ((S_IFMT & inode->i_mode) != (S_IFMT & fattr->mode)) in nfs_find_actor() 1444 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) in nfs_check_inode_attributes() 1859 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { in nfs_update_inode() 1988 umode_t newmode = inode->i_mode & S_IFMT; in nfs_update_inode()
|
D | export.c | 54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
|
/Linux-v5.10/security/ |
D | inode.c | 116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
|
/Linux-v5.10/fs/coda/ |
D | dir.c | 543 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
|
/Linux-v5.10/init/ |
D | initramfs.c | 77 if (((*p)->mode ^ mode) & S_IFMT) in find_link() 301 (st.mode ^ fmode) & S_IFMT) { in clean_path()
|
/Linux-v5.10/fs/fat/ |
D | file.c | 427 perm = *mode_ptr & ~(S_IFMT | mask); in fat_sanitize_mode() 445 *mode_ptr &= S_IFMT | perm; in fat_sanitize_mode()
|
/Linux-v5.10/fs/ramfs/ |
D | inode.c | 75 switch (mode & S_IFMT) { in ramfs_get_inode()
|