/linux-6.3-rc2/include/uapi/linux/ |
A 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)
|
A D | gfs2_ondisk.h | 229 #define DT2IF(dt) (((dt) << 12) & S_IFMT) 230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
|
/linux-6.3-rc2/tools/include/uapi/linux/ |
A 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-6.3-rc2/tools/include/nolibc/ |
A D | types.h | 27 #define S_IFMT 0170000 macro 29 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 30 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 31 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 32 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 33 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 34 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 35 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/linux-6.3-rc2/include/linux/ |
A 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-6.3-rc2/samples/vfs/ |
A 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-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A 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-6.3-rc2/fs/erofs/ |
A 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-6.3-rc2/fs/nfsd/ |
A 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-6.3-rc2/fs/overlayfs/ |
A 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() 614 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index() 619 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index() 750 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index() 751 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
|
/linux-6.3-rc2/fs/exfat/ |
A 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-6.3-rc2/security/tomoyo/ |
A D | tomoyo.c | 231 switch (mode & S_IFMT) { in tomoyo_path_mknod() 243 switch (mode & S_IFMT) { in tomoyo_path_mknod()
|
/linux-6.3-rc2/fs/efivarfs/ |
A D | inode.c | 30 switch (mode & S_IFMT) { in efivarfs_get_inode()
|
/linux-6.3-rc2/fs/xfs/ |
A 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-6.3-rc2/fs/coda/ |
A D | cnode.c | 81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
|
A D | dir.c | 549 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
|
/linux-6.3-rc2/fs/nfs/ |
A D | export.c | 54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
|
/linux-6.3-rc2/security/ |
A D | inode.c | 116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
|
/linux-6.3-rc2/fs/fat/ |
A 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-6.3-rc2/fs/jffs2/ |
A 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-6.3-rc2/fs/ramfs/ |
A D | inode.c | 69 switch (mode & S_IFMT) { in ramfs_get_inode()
|
/linux-6.3-rc2/fs/nilfs2/ |
A 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-6.3-rc2/init/ |
A D | initramfs.c | 102 if (((*p)->mode ^ mode) & S_IFMT) in find_link() 341 (st.mode ^ fmode) & S_IFMT) { in clean_path()
|
/linux-6.3-rc2/fs/xfs/libxfs/ |
A 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()
|
A 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()
|