Home
last modified time | relevance | path

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

12345

/linux-6.6.21/tools/include/uapi/linux/
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.6.21/include/uapi/linux/
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)
Dgfs2_ondisk.h229 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
230 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/linux-6.6.21/tools/include/nolibc/
Dtypes.h26 #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/
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.6.21/samples/vfs/
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.6.21/tools/testing/selftests/bpf/progs/
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.6.21/fs/erofs/
Dinode.c85 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/
Dnfsproc.c313 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/
Dnamei.c460 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/
Dtomoyo.c231 switch (mode & S_IFMT) { in tomoyo_path_mknod()
243 switch (mode & S_IFMT) { in tomoyo_path_mknod()
/linux-6.6.21/fs/exfat/
Dfile.c68 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/
Dinode.c30 switch (mode & S_IFMT) { in efivarfs_get_inode()
/linux-6.6.21/fs/xfs/
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.6.21/fs/coda/
Dcnode.c81 } else if ((inode->i_mode & S_IFMT) != inode_type) { in coda_iget()
Ddir.c542 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
/linux-6.6.21/fs/nfs/
Dexport.c54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
/linux-6.6.21/security/
Dinode.c116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
/linux-6.6.21/fs/fat/
Dfile.c436 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/
Ddir.c264 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/
Dinode.c69 switch (mode & S_IFMT) { in ramfs_get_inode()
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_inode_buf.c531 switch (mode & S_IFMT) { in xfs_dinode_verify()
593 if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) in xfs_dinode_verify()
Dxfs_inode_fork.c240 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/
Dinitramfs.c95 if (((*p)->mode ^ mode) & S_IFMT) in find_link()
334 (st.mode ^ fmode) & S_IFMT) { in clean_path()
/linux-6.6.21/fs/nilfs2/
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()

12345