Home
last modified time | relevance | path

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

1234

/linux/tools/perf/trace/beauty/include/uapi/linux/
H 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/tools/include/uapi/linux/
H 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/include/uapi/linux/
H 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)
H A Dgfs2_ondisk.h229 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/linux/tools/include/nolibc/
H A Dtypes.h28 #if !defined(S_IFMT)
36 #define S_IFMT 0170000 macro
38 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
39 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
40 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
41 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
42 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
43 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
44 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
/linux/include/linux/
H 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/samples/vfs/
H 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/fs/smb/client/
H A Dreparse.h52 switch (mode & S_IFMT) { in reparse_mode_nfs_type()
64 switch (mode & S_IFMT) { in reparse_mode_wsl_tag()
H A Dfscache.c137 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie()
/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h23 #define S_IFMT 00170000 macro
34 #define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK)
35 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
36 #define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR)
37 #define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK)
38 #define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO)
39 #define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
/linux/fs/xfs/
H A Dxfs_symlink.c96 .mode = S_IFLNK | (mode & ~S_IFMT), in xfs_symlink()
291 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
/linux/fs/nfsd/
H A Dnfsproc.c344 type = attr->ia_mode & S_IFMT; in nfsd_proc_create()
345 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create()
350 type = inode->i_mode & S_IFMT; in nfsd_proc_create()
377 type = inode->i_mode & S_IFMT; in nfsd_proc_create()
378 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create()
/linux/fs/overlayfs/
H A Dnamei.c464 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh()
465 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh()
692 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index()
697 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index()
828 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index()
829 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
/linux/security/tomoyo/
H A Dtomoyo.c232 switch (mode & S_IFMT) { in tomoyo_path_mknod()
244 switch (mode & S_IFMT) { in tomoyo_path_mknod()
/linux/fs/erofs/
H A Dinode.c138 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
212 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
/linux/fs/coda/
H A Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
H A Ddir.c543 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
/linux/fs/efivarfs/
H A Dinode.c34 switch (mode & S_IFMT) { in efivarfs_get_inode()
/linux/fs/nfs/
H A Dexport.c54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
/linux/fs/fat/
H A Dfile.c436 perm = *mode_ptr & ~(S_IFMT | mask); in fat_sanitize_mode()
454 *mode_ptr &= S_IFMT | perm; in fat_sanitize_mode()
/linux/fs/jffs2/
H A Ddir.c265 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link()
735 rd->type = (mode & S_IFMT) >> 12; in jffs2_mknod()
815 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
/linux/security/
H A Dinode.c116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
/linux/init/
H A Dinitramfs.c97 if (((*p)->mode ^ mode) & S_IFMT) in find_link()
336 (st.mode ^ fmode) & S_IFMT) { in clean_path()
/linux/fs/xfs/libxfs/
H A Dxfs_inode_fork.c250 switch (inode->i_mode & S_IFMT) { in xfs_iformat_data_fork()
676 switch (VFS_I(ip)->i_mode & S_IFMT) { in xfs_ifork_verify_local_data()
/linux/fs/exfat/
H A Dfile.c116 perm = *mode_ptr & ~(S_IFMT | mask); in exfat_sanitize_mode()
138 *mode_ptr &= S_IFMT | perm; in exfat_sanitize_mode()

1234