S_DT_SHIFT 30 include/linux/fs_types.h #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) S_DT_SHIFT 31 include/linux/fs_types.h #define S_DT_MASK (S_IFMT >> S_DT_SHIFT)