| /linux-6.15/tools/testing/selftests/proc/ |
| H A D | proc-subset-pid.c | 91 assert(de->d_type == DT_DIR); in main() 95 assert(de->d_type == DT_DIR); in main() 99 assert(de->d_type == DT_LNK); in main() 103 assert(de->d_type == DT_LNK); in main() 109 assert(de->d_type == DT_DIR); in main()
|
| H A D | read.c | 82 assert(de->d_type == DT_DIR); in f() 86 assert(de->d_type == DT_DIR); in f() 93 switch (de->d_type) { in f()
|
| H A D | fd-001-lookup.c | 116 assert(de->d_type == DT_DIR); in main() 120 assert(de->d_type == DT_DIR); in main() 129 assert(de->d_type == DT_LNK); in main()
|
| H A D | fd-003-kthread.c | 106 assert(de->d_type == DT_DIR); in test_readdir() 110 assert(de->d_type == DT_DIR); in test_readdir()
|
| /linux-6.15/fs/vboxsf/ |
| H A D | dir.c | 61 unsigned int d_type; in vboxsf_get_d_type() local 65 d_type = DT_FIFO; in vboxsf_get_d_type() 68 d_type = DT_CHR; in vboxsf_get_d_type() 71 d_type = DT_DIR; in vboxsf_get_d_type() 74 d_type = DT_BLK; in vboxsf_get_d_type() 77 d_type = DT_REG; in vboxsf_get_d_type() 80 d_type = DT_LNK; in vboxsf_get_d_type() 83 d_type = DT_SOCK; in vboxsf_get_d_type() 86 d_type = DT_WHT; in vboxsf_get_d_type() 92 return d_type; in vboxsf_get_d_type() [all …]
|
| /linux-6.15/tools/lib/api/ |
| H A D | io_dir.h | 48 unsigned char d_type; /* File type */ member 91 if (dent->d_type == DT_UNKNOWN) { in io_dir__is_dir() 98 dent->d_type = DT_DIR; in io_dir__is_dir() 102 return dent->d_type == DT_DIR; in io_dir__is_dir()
|
| /linux-6.15/tools/perf/util/ |
| H A D | genelf.c | 181 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info() 215 d->d_type = ELF_T_BYTE; in jit_add_eh_frame_info() 317 d->d_type = ELF_T_BYTE; in jit_write_elf() 364 d->d_type = ELF_T_BYTE; in jit_write_elf() 400 d->d_type = ELF_T_SYM; in jit_write_elf() 443 d->d_type = ELF_T_BYTE; in jit_write_elf() 485 d->d_type = ELF_T_BYTE; in jit_write_elf()
|
| H A D | tracepoint.h | 13 if (evt_dirent->d_type == DT_DIR && \ 20 if (sys_dirent->d_type == DT_DIR && \
|
| /linux-6.15/fs/ |
| H A D | readdir.c | 182 loff_t offset, u64 ino, unsigned int d_type) in fillonedir() argument 260 loff_t offset, u64 ino, unsigned int d_type) in filldir() argument 293 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir() 346 loff_t offset, u64 ino, unsigned int d_type) in filldir64() argument 373 unsafe_put_user(d_type, &dirent->d_type, efault_end); in filldir64() 435 unsigned int d_type) in compat_fillonedir() argument 507 loff_t offset, u64 ino, unsigned int d_type) in compat_filldir() argument 539 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in compat_filldir()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | dirent_format.h | 33 __u8 d_type:5, member 39 d_type:5; member
|
| H A D | dirent.c | 135 if (d.v->d_type == DT_SUBVOL) in dirent_is_visible() 190 bkey_fsck_err_on(d.v->d_type != DT_SUBVOL && in bch2_dirent_validate() 217 if (d.v->d_type != DT_SUBVOL) in bch2_dirent_to_text() 224 prt_printf(out, " type %s", bch2_d_type_str(d.v->d_type)); in bch2_dirent_to_text() 252 dirent->v.d_type = type; in dirent_alloc_key() 379 if (d.v->d_type == DT_SUBVOL && in bch2_dirent_read_target() 383 if (likely(d.v->d_type != DT_SUBVOL)) { in bch2_dirent_read_target() 531 if (new_dst->v.d_type == DT_SUBVOL) in bch2_dirent_rename() 535 new_src->v.d_type == DT_SUBVOL) in bch2_dirent_rename() 564 bkey_s_c_to_dirent(old_dst).v->d_type == DT_SUBVOL && in bch2_dirent_rename() [all …]
|
| H A D | dirent.h | 59 dst->v.d_type = src.v->d_type; in dirent_copy_target()
|
| H A D | namei.h | 66 d.v->d_type == inode_d_type(target))) in bch2_check_dirent_target()
|
| /linux-6.15/fs/overlayfs/ |
| H A D | readdir.c | 147 u64 ino, unsigned int d_type) in ovl_cache_entry_new() argument 159 p->type = d_type; in ovl_cache_entry_new() 170 if (d_type == DT_CHR) { in ovl_cache_entry_new() 179 unsigned int d_type) in ovl_cache_entry_add_rb() argument 188 p = ovl_cache_entry_new(rdd, name, len, ino, d_type); in ovl_cache_entry_add_rb() 203 loff_t offset, u64 ino, unsigned int d_type) in ovl_fill_lowest() argument 259 unsigned int d_type) in ovl_fill_merge() argument 549 unsigned int d_type) in ovl_fill_plain() argument 670 unsigned int d_type) in ovl_fill_real() argument 1052 unsigned int d_type) in ovl_check_d_type() argument [all …]
|
| /linux-6.15/fs/xfs/libxfs/ |
| H A D | xfs_dquot_buf.c | 67 if (ddq->d_type & ~XFS_DQTYPE_ANY) in xfs_dquot_verify() 69 ddq_type = ddq->d_type & XFS_DQTYPE_REC_MASK; in xfs_dquot_verify() 75 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && in xfs_dquot_verify() 79 if ((ddq->d_type & XFS_DQTYPE_BIGTIME) && !ddq->d_id) in xfs_dquot_verify() 137 dqb->dd_diskdq.d_type = type; in xfs_dqblk_repair() 310 if (t != 0 && (ddq->d_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_from_disk_ts()
|
| /linux-6.15/fs/erofs/ |
| H A D | namei.c | 162 unsigned int *d_type) in erofs_namei() argument 187 *d_type = de->file_type; in erofs_namei() 198 unsigned int d_type; in erofs_lookup() local 206 err = erofs_namei(dir, &dentry->d_name, &nid, &d_type); in erofs_lookup()
|
| H A D | dir.c | 16 unsigned char d_type = fs_ftype_to_dtype(de->file_type); in erofs_fill_dentries() local 37 le64_to_cpu(de->nid), d_type)) in erofs_fill_dentries()
|
| /linux-6.15/fs/ufs/ |
| H A D | util.h | 160 de->d_u.d_44.d_type = DT_SOCK; in ufs_set_de_type() 163 de->d_u.d_44.d_type = DT_LNK; in ufs_set_de_type() 166 de->d_u.d_44.d_type = DT_REG; in ufs_set_de_type() 169 de->d_u.d_44.d_type = DT_BLK; in ufs_set_de_type() 172 de->d_u.d_44.d_type = DT_DIR; in ufs_set_de_type() 175 de->d_u.d_44.d_type = DT_CHR; in ufs_set_de_type() 178 de->d_u.d_44.d_type = DT_FIFO; in ufs_set_de_type() 181 de->d_u.d_44.d_type = DT_UNKNOWN; in ufs_set_de_type()
|
| /linux-6.15/tools/perf/ui/browsers/ |
| H A D | scripts.c | 196 if (lang_dirent->d_type != DT_DIR && in find_scripts() 197 (lang_dirent->d_type == DT_UNKNOWN && in find_scripts() 221 if (script_dirent->d_type == DT_DIR) in find_scripts() 223 if (script_dirent->d_type == DT_UNKNOWN && in find_scripts()
|
| /linux-6.15/include/linux/ |
| H A D | dirent.h | 9 unsigned char d_type; member
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_dquot_item_recover.c | 43 type = recddq->d_type & XFS_DQTYPE_REC_MASK; in xlog_recover_dquot_ra_pass2() 96 type = recddq->d_type & XFS_DQTYPE_REC_MASK; in xlog_recover_dquot_commit_pass2()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | quota_repair.c | 285 if (ddq->d_type & XFS_DQTYPE_BIGTIME) in xrep_quota_fix_timer() 330 if ((ddq->d_type & XFS_DQTYPE_REC_MASK) != dqtype || in xrep_quota_block() 350 ddq->d_type = dqtype; in xrep_quota_block() 354 ddq->d_type |= XFS_DQTYPE_BIGTIME; in xrep_quota_block()
|
| /linux-6.15/drivers/misc/genwqe/ |
| H A D | card_utils.c | 833 u32 eevptr_addr, l_addr, d_len, d_type; in genwqe_ffdc_buff_size() local 852 d_type = (val & 0x0000008000000000ull) >> 36; in genwqe_ffdc_buff_size() 854 if (d_type) { /* repeat */ in genwqe_ffdc_buff_size() 892 u32 eevptr_addr, l_addr, d_addr, d_len, d_type; in genwqe_ffdc_buff_read() local 907 d_type = (e & 0x0000008000000000ull) >> 36; /* 39 */ in genwqe_ffdc_buff_read() 910 if (d_type) { in genwqe_ffdc_buff_read()
|
| /linux-6.15/tools/testing/selftests/powerpc/dscr/ |
| H A D | dscr_sysfs_test.c | 45 if (!(dp->d_type & DT_DIR)) in check_all_cpu_dscr_defaults()
|
| /linux-6.15/tools/perf/tests/ |
| H A D | tests-scripts.c | 250 if (ent->d_type != DT_DIR) { in append_scripts_in_dir() 253 if (ent->d_type != DT_UNKNOWN) in append_scripts_in_dir()
|