Home
last modified time | relevance | path

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

12345

/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/fs/overlayfs/
Dnamei.c369 ((d_inode(origin)->i_mode ^ d_inode(upperdentry)->i_mode) & S_IFMT)) in ovl_check_origin_fh()
387 upperdentry, d_inode(upperdentry)->i_mode & S_IFMT, in ovl_check_origin_fh()
388 d_inode(origin)->i_mode & S_IFMT); in ovl_check_origin_fh()
602 index, d_inode(index)->i_mode & S_IFMT, err); in ovl_verify_index()
607 index, d_inode(index)->i_mode & S_IFMT, in ovl_verify_index()
727 ((inode->i_mode ^ d_inode(origin)->i_mode) & S_IFMT)) { in ovl_lookup_index()
736 index, d_inode(index)->i_mode & S_IFMT, in ovl_lookup_index()
737 d_inode(origin)->i_mode & S_IFMT); in ovl_lookup_index()
/Linux-v5.10/fs/erofs/
Dinode.c88 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
128 switch (inode->i_mode & S_IFMT) { in erofs_read_inode()
241 switch (inode->i_mode & S_IFMT) { in erofs_fill_inode()
/Linux-v5.10/fs/nfsd/
Dnfsproc.c317 type = attr->ia_mode & S_IFMT; in nfsd_proc_create()
318 mode = attr->ia_mode & ~S_IFMT; in nfsd_proc_create()
323 type = inode->i_mode & S_IFMT; in nfsd_proc_create()
349 type = inode->i_mode & S_IFMT; in nfsd_proc_create()
350 mode = inode->i_mode & ~S_IFMT; in nfsd_proc_create()
379 if (inode && type != (inode->i_mode & S_IFMT)) in nfsd_proc_create()
/Linux-v5.10/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-v5.10/fs/9p/
Dvfs_inode.c260 switch (mode & S_IFMT) { in v9fs_init_inode()
332 mode, mode & S_IFMT); in v9fs_init_inode()
401 if ((inode->i_mode & S_IFMT) != (umode & S_IFMT)) in v9fs_test_inode()
1363 if ((inode->i_mode & S_IFMT) != (umode & S_IFMT)) in v9fs_refresh_inode()
Dvfs_inode_dotl.c62 if ((inode->i_mode & S_IFMT) != (st->st_mode & S_IFMT)) in v9fs_test_inode_dotl()
936 if ((inode->i_mode & S_IFMT) != (st->st_mode & S_IFMT)) in v9fs_refresh_inode_dotl()
/Linux-v5.10/fs/efivarfs/
Dinode.c27 switch (mode & S_IFMT) { in efivarfs_get_inode()
/Linux-v5.10/security/tomoyo/
Dtomoyo.c220 switch (mode & S_IFMT) { in tomoyo_path_mknod()
232 switch (mode & S_IFMT) { in tomoyo_path_mknod()
/Linux-v5.10/fs/exfat/
Dfile.c67 perm = *mode_ptr & ~(S_IFMT | mask); in exfat_sanitize_mode()
89 *mode_ptr &= S_IFMT | perm; in exfat_sanitize_mode()
/Linux-v5.10/fs/xfs/
Dxfs_symlink.c226 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, in xfs_symlink()
404 VFS_I(ip)->i_mode = (VFS_I(ip)->i_mode & ~S_IFMT) | S_IFREG; in xfs_inactive_symlink_rmt()
Dxfs_iops.c583 switch (inode->i_mode & S_IFMT) { in xfs_vn_getattr()
608 inode->i_mode &= S_IFMT; in xfs_setattr_mode()
609 inode->i_mode |= mode & ~S_IFMT; in xfs_setattr_mode()
1378 switch (inode->i_mode & S_IFMT) { in xfs_setup_iops()
/Linux-v5.10/fs/cifs/
Dinode.c46 switch (inode->i_mode & S_IFMT) {
255 fattr->cf_mode &= ~S_IFMT;
428 if (unlikely(((*pinode)->i_mode & S_IFMT) !=
429 (fattr.cf_mode & S_IFMT))) {
460 fattr->cf_mode &= ~S_IFMT;
1099 if (unlikely(((*inode)->i_mode & S_IFMT) !=
1100 (fattr.cf_mode & S_IFMT))) {
1212 if (unlikely(((*inode)->i_mode & S_IFMT) !=
1213 (fattr.cf_mode & S_IFMT))) {
1246 if ((inode->i_mode & S_IFMT) != (fattr->cf_mode & S_IFMT))
Dreaddir.c121 (inode->i_mode & S_IFMT) == in cifs_prime_dcache()
122 (fattr->cf_mode & S_IFMT)) { in cifs_prime_dcache()
230 fattr->cf_mode &= ~S_IFMT; in cifs_fill_common_info()
270 fattr->cf_mode = le32_to_cpu(info->Mode) & ~S_IFMT; in cifs_posix_to_fattr()
/Linux-v5.10/fs/nfs/
Dinode.c324 if ((S_IFMT & inode->i_mode) != (S_IFMT & fattr->mode)) in nfs_find_actor()
1444 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) in nfs_check_inode_attributes()
1859 if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { in nfs_update_inode()
1988 umode_t newmode = inode->i_mode & S_IFMT; in nfs_update_inode()
Dexport.c54 p[FILE_I_TYPE_OFF] = inode->i_mode & S_IFMT; in nfs_encode_fh()
/Linux-v5.10/security/
Dinode.c116 if (!(mode & S_IFMT)) in securityfs_create_dentry()
/Linux-v5.10/fs/coda/
Ddir.c543 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { in coda_revalidate_inode()
/Linux-v5.10/init/
Dinitramfs.c77 if (((*p)->mode ^ mode) & S_IFMT) in find_link()
301 (st.mode ^ fmode) & S_IFMT) { in clean_path()
/Linux-v5.10/fs/fat/
Dfile.c427 perm = *mode_ptr & ~(S_IFMT | mask); in fat_sanitize_mode()
445 *mode_ptr &= S_IFMT | perm; in fat_sanitize_mode()
/Linux-v5.10/fs/ramfs/
Dinode.c75 switch (mode & S_IFMT) { in ramfs_get_inode()

12345