/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/fs/erofs/ |
D | inode.c | 88 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 131 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 260 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
|
/Linux-v6.1/fs/overlayfs/ |
D | namei.c | 398 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 399 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh() 613 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index() 618 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index() 749 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index() 750 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
|
/Linux-v6.1/fs/nfsd/ |
D | nfsproc.c | 325 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 326 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 331 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 357 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 358 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create()
|
/Linux-v6.1/fs/exfat/ |
D | file.c | 68 perm = *mode_ptr & ~(S_IFMT | mask); in exfat_sanitize_mode() 90 *mode_ptr &= S_IFMT | perm; in exfat_sanitize_mode()
|
/Linux-v6.1/security/tomoyo/ |
D | tomoyo.c | 219 switch (mode & S_IFMT) { in tomoyo_path_mknod() 231 switch (mode & S_IFMT) { in tomoyo_path_mknod()
|
/Linux-v6.1/tools/include/nolibc/ |
D | types.h | 27 #define S_IFMT 0170000 macro
|
/Linux-v6.1/fs/efivarfs/ |
D | inode.c | 30 switch (mode & S_IFMT) { in efivarfs_get_inode()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_symlink.c | 235 S_IFLNK | (mode & ~S_IFMT), 1, 0, prid, in xfs_symlink() 413 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
|
/Linux-v6.1/fs/coda/ |
D | cnode.c | 81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
|
D | dir.c | 549 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
|
/Linux-v6.1/fs/nfs/ |
D | export.c | 54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
|
/Linux-v6.1/security/ |
D | inode.c | 116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
|
/Linux-v6.1/fs/fat/ |
D | file.c | 436 perm = *mode_ptr & ~(S_IFMT | mask); in fat_sanitize_mode() 454 *mode_ptr &= S_IFMT | perm; in fat_sanitize_mode()
|
/Linux-v6.1/fs/jffs2/ |
D | dir.c | 263 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link() 729 rd->type = (mode & S_IFMT) >> 12; in jffs2_mknod() 808 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
|
/Linux-v6.1/fs/ramfs/ |
D | inode.c | 69 switch (mode & S_IFMT) { in ramfs_get_inode()
|
/Linux-v6.1/fs/nilfs2/ |
D | dir.c | 246 nilfs_type_by_mode[S_IFMT >> S_SHIFT] = { 260 de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in nilfs_set_de_type()
|
/Linux-v6.1/init/ |
D | initramfs.c | 101 if (((*p)->mode ^ mode) & S_IFMT) in find_link() 340 (st.mode ^ fmode) & S_IFMT) { in clean_path()
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_inode_buf.c | 527 switch (mode & S_IFMT) { in xfs_dinode_verify() 589 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) in xfs_dinode_verify()
|
D | xfs_inode_fork.c | 234 switch (inode->i_mode & S_IFMT) { in xfs_iformat_data_fork() 689 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_ifork_verify_local_data()
|