/linux-6.6.21/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-6.6.21/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-6.6.21/tools/include/nolibc/ |
D | types.h | 26 #if !defined(S_IFMT) 34 #define S_IFMT 0170000 macro 36 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) 37 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) 38 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) 39 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) 40 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) 41 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) 42 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/fs/erofs/ |
D | inode.c | 85 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 128 switch (inode->i_mode & S_IFMT) { in erofs_read_inode() 256 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
|
/linux-6.6.21/fs/nfsd/ |
D | nfsproc.c | 313 type = attr->ia_mode & S_IFMT; in nfsd_proc_create() 314 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create() 319 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 345 type = inode->i_mode & S_IFMT; in nfsd_proc_create() 346 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create()
|
/linux-6.6.21/fs/overlayfs/ |
D | namei.c | 460 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh() 461 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh() 676 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index() 681 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index() 812 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index() 813 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
|
/linux-6.6.21/security/tomoyo/ |
D | tomoyo.c | 231 switch (mode & S_IFMT) { in tomoyo_path_mknod() 243 switch (mode & S_IFMT) { in tomoyo_path_mknod()
|
/linux-6.6.21/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-6.6.21/fs/efivarfs/ |
D | inode.c | 30 switch (mode & S_IFMT) { in efivarfs_get_inode()
|
/linux-6.6.21/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-6.6.21/fs/coda/ |
D | cnode.c | 81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
|
D | dir.c | 542 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
|
/linux-6.6.21/fs/nfs/ |
D | export.c | 54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
|
/linux-6.6.21/security/ |
D | inode.c | 116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
|
/linux-6.6.21/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-6.6.21/fs/jffs2/ |
D | dir.c | 264 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link() 732 rd->type = (mode & S_IFMT) >> 12; in jffs2_mknod() 812 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
|
/linux-6.6.21/fs/ramfs/ |
D | inode.c | 69 switch (mode & S_IFMT) { in ramfs_get_inode()
|
/linux-6.6.21/fs/xfs/libxfs/ |
D | xfs_inode_buf.c | 531 switch (mode & S_IFMT) { in xfs_dinode_verify() 593 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) in xfs_dinode_verify()
|
D | xfs_inode_fork.c | 240 switch (inode->i_mode & S_IFMT) { in xfs_iformat_data_fork() 704 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_ifork_verify_local_data()
|
/linux-6.6.21/init/ |
D | initramfs.c | 95 if (((*p)->mode ^ mode) & S_IFMT) in find_link() 334 (st.mode ^ fmode) & S_IFMT) { in clean_path()
|
/linux-6.6.21/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()
|