Home
last modified time | relevance | path

Searched refs:S_IFMT (Results 1 – 25 of 102) sorted by relevance

12345

/linux-6.3-rc2/include/uapi/linux/
A Dstat.h9 #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 Dgfs2_ondisk.h229 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/linux-6.3-rc2/tools/include/uapi/linux/
A Dstat.h9 #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 Dtypes.h27 #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 Dfs_types.h30 #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 Dtest-statx.c90 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 Dprofiler.inc.h20 #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 Dinode.c88 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 Dnfsproc.c325 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 Dnamei.c398 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 Dfile.c68 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 Dtomoyo.c231 switch (mode & S_IFMT) { in tomoyo_path_mknod()
243 switch (mode & S_IFMT) { in tomoyo_path_mknod()
/linux-6.3-rc2/fs/efivarfs/
A Dinode.c30 switch (mode & S_IFMT) { in efivarfs_get_inode()
/linux-6.3-rc2/fs/xfs/
A Dxfs_symlink.c235 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 Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
A Ddir.c549 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
/linux-6.3-rc2/fs/nfs/
A Dexport.c54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
/linux-6.3-rc2/security/
A Dinode.c116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
/linux-6.3-rc2/fs/fat/
A Dfile.c436 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 Ddir.c263 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 Dinode.c69 switch (mode & S_IFMT) { in ramfs_get_inode()
/linux-6.3-rc2/fs/nilfs2/
A Ddir.c246 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 Dinitramfs.c102 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 Dxfs_inode_fork.c234 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 Dxfs_inode_buf.c527 switch (mode & S_IFMT) { in xfs_dinode_verify()
589 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) in xfs_dinode_verify()

Completed in 39 milliseconds

12345