Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 25 of 257) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/tools/testing/selftests/proc/
Dread.c81 assert(streq(de->d_name, ".")); in f()
85 assert(streq(de->d_name, "..")); in f()
88 assert(!streq(de->d_name, ".")); in f()
89 assert(!streq(de->d_name, "..")); in f()
96 if (level == 0 && streq(de->d_name, "sysrq-trigger")) { in f()
97 f_reg_write(d, de->d_name, "h", 1); in f()
98 } else if (level == 1 && streq(de->d_name, "clear_refs")) { in f()
99 f_reg_write(d, de->d_name, "1", 1); in f()
100 } else if (level == 3 && streq(de->d_name, "clear_refs")) { in f()
101 f_reg_write(d, de->d_name, "1", 1); in f()
[all …]
/kernel/linux/linux-5.10/tools/iio/
Dlsiio.c50 if (check_prefix(ent->d_name, "in_") && in dump_channels()
51 (check_postfix(ent->d_name, "_raw") || in dump_channels()
52 check_postfix(ent->d_name, "_input"))) in dump_channels()
53 printf(" %-10s\n", ent->d_name); in dump_channels()
114 if (check_prefix(ent->d_name, type_device)) { in dump_devices()
118 ent->d_name) < 0) { in dump_devices()
136 if (check_prefix(ent->d_name, type_trigger)) { in dump_devices()
140 ent->d_name) < 0) { in dump_devices()
Diio_utils.c121 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type()
122 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type()
124 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type()
179 if (strcmp(builtname, ent->d_name) == 0) in iioutils_get_type()
246 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float()
247 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float()
249 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float()
335 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
338 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array()
380 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
[all …]
/kernel/linux/linux-5.10/fs/coda/
Ddir.c44 const char *name = entry->d_name.name; in coda_lookup()
45 size_t length = entry->d_name.len; in coda_lookup()
138 const char *name=de->d_name.name; in coda_create()
139 int length=de->d_name.len; in coda_create()
171 const char *name = de->d_name.name; in coda_mkdir()
172 int len = de->d_name.len; in coda_mkdir()
206 const char * name = de->d_name.name; in coda_link()
207 int len = de->d_name.len; in coda_link()
231 const char *name = de->d_name.name; in coda_symlink()
232 int len = de->d_name.len; in coda_symlink()
[all …]
/kernel/linux/linux-5.10/tools/thermal/tmon/
Dsysfs.c166 static int find_tzone_tp(char *tz_name, char *d_name, struct tz_info *tzi, in find_tzone_tp() argument
172 if (strstr(d_name, "trip_point") && in find_tzone_tp()
173 strstr(d_name, "temp")) { in find_tzone_tp()
177 sysfs_get_ulong(tz_name, d_name, &temp_ulong); in find_tzone_tp()
181 tp_id = get_instance_id(d_name, 2, 0); in find_tzone_tp()
183 tz_name, tp_id, temp_ulong, d_name); in find_tzone_tp()
186 d_name); in find_tzone_tp()
208 syslog(LOG_DEBUG, "TZ%d: cdev: %s cid %d\n", tz_id, nl->d_name, in find_tzone_cdev()
218 tz_name, nl->d_name); in find_tzone_cdev()
232 "%s%s", nl->d_name, "_trip_point"); in find_tzone_cdev()
[all …]
/kernel/linux/linux-5.10/fs/jffs2/
Ddir.c86 if (target->d_name.len > JFFS2_MAX_NAME_LEN) in jffs2_lookup()
92 nhash = full_name_hash(NULL, target->d_name.name, target->d_name.len); in jffs2_lookup()
100 strlen(fd_list->name) == target->d_name.len && in jffs2_lookup()
101 !strncmp(fd_list->name, target->d_name.name, target->d_name.len)) { in jffs2_lookup()
200 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create()
232 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_unlink()
233 dentry->d_name.len, dead_f, now); in jffs2_unlink()
264 …ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now… in jffs2_link()
307 namelen = dentry->d_name.len; in jffs2_symlink()
371 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dnamei.c106 trace_ocfs2_lookup(dir, dentry, dentry->d_name.len, in ocfs2_lookup()
107 dentry->d_name.name, in ocfs2_lookup()
110 if (dentry->d_name.len > OCFS2_MAX_FILENAME_LEN) { in ocfs2_lookup()
123 status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name, in ocfs2_lookup()
124 dentry->d_name.len, &blkno); in ocfs2_lookup()
252 trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, in ocfs2_mknod()
284 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, in ocfs2_mknod()
285 dentry->d_name.len); in ocfs2_mknod()
291 dentry->d_name.name, in ocfs2_mknod()
292 dentry->d_name.len, &lookup); in ocfs2_mknod()
[all …]
Ddcache.c49 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate()
50 dentry->d_name.name); in ocfs2_dentry_revalidate()
62 trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len, in ocfs2_dentry_revalidate()
63 dentry->d_name.name, in ocfs2_dentry_revalidate()
164 trace_ocfs2_find_local_alias(dentry->d_name.len, in ocfs2_find_local_alias()
165 dentry->d_name.name); in ocfs2_find_local_alias()
220 trace_ocfs2_dentry_attach_lock(dentry->d_name.len, dentry->d_name.name, in ocfs2_dentry_attach_lock()
/kernel/linux/linux-5.10/scripts/dtc/
Dfstree.c27 if (streq(de->d_name, ".") in read_fstree()
28 || streq(de->d_name, "..")) in read_fstree()
31 tmpname = join_path(dirname, de->d_name); in read_fstree()
46 prop = build_property(xstrdup(de->d_name), in read_fstree()
57 newchild = name_node(newchild, xstrdup(de->d_name)); in read_fstree()
/kernel/linux/linux-5.10/fs/efivarfs/
Dinode.c77 if (!efivarfs_valid_name(dentry->d_name.name, dentry->d_name.len)) in efivarfs_create()
85 namelen = dentry->d_name.len - EFI_VARIABLE_GUID_LEN - 1; in efivarfs_create()
87 err = guid_parse(dentry->d_name.name + namelen + 1, &var->var.VendorGuid); in efivarfs_create()
92 dentry->d_name.name, namelen)) in efivarfs_create()
102 var->var.VariableName[i] = dentry->d_name.name[i]; in efivarfs_create()
/kernel/linux/linux-5.10/tools/perf/util/
Dtrace-event-info.c158 (strcmp(dent->d_name, ".")) && \
159 (strcmp(dent->d_name, ".."))) \
178 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system()
200 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
203 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system()
278 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files()
279 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
293 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files()
294 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
[all …]
/kernel/linux/linux-5.10/tools/power/acpi/os_specific/service_layers/
Dosunixdir.c101 (external_info->wildcard_spec, dir_entry->d_name, 0)) { in acpi_os_get_next_filename()
102 if (dir_entry->d_name[0] == '.') { in acpi_os_get_next_filename()
106 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename()
118 strcat(temp_str, dir_entry->d_name); in acpi_os_get_next_filename()
141 dir_entry->d_name); in acpi_os_get_next_filename()
/kernel/linux/linux-5.10/fs/hmdfs/
Dinode_local.c193 const struct qstr *name = &child_dentry->d_name; in __lookup_nosensitive()
236 const char *d_name = child_dentry->d_name.name; in hmdfs_lookup_local() local
245 if (child_dentry->d_name.len > NAME_MAX) { in hmdfs_lookup_local()
264 (child_dentry->d_name.name), 0, &lower_path); in hmdfs_lookup_local()
275 child_dentry->d_name.name); in hmdfs_lookup_local()
302 lower_dentry = lookup_one_len_unlocked(d_name, lower_parent_path.dentry, in hmdfs_lookup_local()
303 child_dentry->d_name.len); in hmdfs_lookup_local()
361 child_inode = fill_inode_local(sb, lower_inode, dentry->d_name.name); in hmdfs_mkdir_local_dentry()
387 if (check_filename(dentry->d_name.name, dentry->d_name.len)) { in hmdfs_mkdir_local()
392 if (hmdfs_file_type(dentry->d_name.name) != HMDFS_TYPE_COMMON) { in hmdfs_mkdir_local()
[all …]
Dhmdfs_trace.h102 __string(name_str, __d->d_name.name)
109 __assign_str(name_str, __d->d_name.name);
139 __string(name_str, dentry->d_name.name)
145 __assign_str(name_str, dentry->d_name.name);
161 __string(name_str, dentry->d_name.name)
167 __assign_str(name_str, dentry->d_name.name);
217 __string(name, d->d_name.name)
218 __string(lo_name, lo_d->d_name.name)
223 __assign_str(name, d->d_name.name)
224 __assign_str(lo_name, lo_d->d_name.name)
[all …]
Dinode_root.c133 const char *d_name = child_dentry->d_name.name; in hmdfs_device_lookup() local
145 if (!strncmp(d_name, DEVICE_VIEW_LOCAL, in hmdfs_device_lookup()
172 } else if (!strncmp(d_name, DEVICE_VIEW_CLOUD, in hmdfs_device_lookup()
208 strncpy(cid, d_name, HMDFS_CID_SIZE); in hmdfs_device_lookup()
243 const char *d_name = child_dentry->d_name.name; in hmdfs_root_lookup() local
251 if (sbi->s_merge_switch && !strcmp(d_name, MERGE_VIEW_ROOT)) { in hmdfs_root_lookup()
256 } else if (sbi->s_merge_switch && !strcmp(d_name, CLOUD_MERGE_VIEW_ROOT)) { in hmdfs_root_lookup()
261 } else if (!strcmp(d_name, DEVICE_VIEW_ROOT)) { in hmdfs_root_lookup()
/kernel/linux/linux-5.10/fs/orangefs/
Dnamei.c43 strncpy(new_op->upcall.req.create.d_name, in orangefs_create()
44 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_create()
123 if (dentry->d_name.len > (ORANGEFS_NAME_MAX - 1)) in orangefs_lookup()
139 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup()
145 new_op->upcall.req.lookup.d_name, in orangefs_lookup()
194 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink()
249 dentry->d_name.name, in orangefs_symlink()
324 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir()
325 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_mkdir()
405 old_dentry->d_name.name, in orangefs_rename()
[all …]
/kernel/linux/linux-5.10/fs/hfs/
Ddir.c31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup()
198 inode = hfs_new_inode(dir, &dentry->d_name, mode); in hfs_create()
202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create()
227 inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); in hfs_mkdir()
231 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_mkdir()
261 res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); in hfs_remove()
299 old_dir, &old_dentry->d_name, in hfs_rename()
300 new_dir, &new_dentry->d_name); in hfs_rename()
304 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
/kernel/linux/linux-5.10/fs/
Dreaddir.c134 char d_name[1]; member
164 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir()
170 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir()
211 char d_name[1]; member
229 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir()
257 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir()
316 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64()
339 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64()
391 char d_name[1]; member
422 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir()
[all …]
Ddcache.c249 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp()
264 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name()
283 return dentry->d_name.name != dentry->d_iname; in dname_external()
289 name->name = dentry->d_name; in take_dentry_name_snapshot()
294 dentry->d_name.len + 1); in take_dentry_name_snapshot()
487 b = d_hash(dentry->d_name.hash); in ___d_drop()
1738 dentry->d_name.len = name->len; in __d_alloc()
1739 dentry->d_name.hash = name->hash; in __d_alloc()
1744 smp_store_release(&dentry->d_name.name, dname); /* ^^^ */ in __d_alloc()
2195 if (dentry->d_name.len != name->len) in d_same_name()
[all …]
/kernel/linux/linux-5.10/fs/fat/
Dnamei_msdos.c210 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_lookup()
276 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_create()
280 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_create()
321 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_rmdir()
353 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_mkdir()
357 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_mkdir()
409 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_unlink()
609 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename()
610 old_dentry->d_name.len, old_msdos_name, in msdos_rename()
614 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename()
[all …]
/kernel/linux/linux-5.10/fs/reiserfs/
Dnamei.c360 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup()
367 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_lookup()
652 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_create()
677 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create()
678 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_create()
732 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mknod()
763 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod()
764 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_mknod()
823 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mkdir()
860 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir()
[all …]
/kernel/liteos_a/fs/vfs/operation/
Dvfs_other.c429 return strcoll((*a)->d_name, (*b)->d_name); in alphasort()
449 fullpath = (char *)malloc(strlen(path) + strlen(pdirent->d_name) + 2); in ls_get_fullpath()
455 ret = snprintf_s(fullpath, strlen(path) + strlen(pdirent->d_name) + 2, in ls_get_fullpath()
456 … strlen(path) + strlen(pdirent->d_name) + 1, "%s/%s", path, pdirent->d_name); in ls_get_fullpath()
464 fullpath = (char *)malloc(strlen(pdirent->d_name) + 2); in ls_get_fullpath()
470 ret = snprintf_s(fullpath, strlen(pdirent->d_name) + 2, strlen(pdirent->d_name) + 1, in ls_get_fullpath()
471 "/%s", pdirent->d_name); in ls_get_fullpath()
595 if (!strcmp(pdirent->d_name, ".") || !strcmp(pdirent->d_name, "..")) { in LsDir()
612 PrintFileInfo64(&stat64Info, pdirent->d_name, linkName); in LsDir()
617 PrintFileInfo(&statInfo, pdirent->d_name, linkName); in LsDir()
[all …]
/kernel/linux/linux-5.10/fs/hfsplus/
Ddir.c48 &dentry->d_name); in hfsplus_lookup()
324 src_dir, &src_dentry->d_name, in hfsplus_link()
335 &src_dentry->d_name, inode); in hfsplus_link()
342 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link()
377 dir, &dentry->d_name, in hfsplus_unlink()
385 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink()
425 res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_rmdir()
453 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_symlink()
457 res = hfsplus_init_security(inode, dir, &dentry->d_name); in hfsplus_symlink()
462 hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_symlink()
[all …]
/kernel/linux/linux-5.10/fs/ext2/
Dnamei.c62 if (dentry->d_name.len > EXT2_NAME_LEN) in ext2_lookup()
65 res = ext2_inode_by_name(dir, &dentry->d_name, &ino); in ext2_lookup()
112 inode = ext2_new_inode(dir, mode, &dentry->d_name); in ext2_create()
143 inode = ext2_new_inode (dir, mode, &dentry->d_name); in ext2_mknod()
169 inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); in ext2_symlink()
239 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir()
285 de = ext2_find_entry(dir, &dentry->d_name, &page); in ext2_unlink()
341 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page); in ext2_rename()
362 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, &new_page); in ext2_rename()
/kernel/linux/linux-5.10/fs/nfs/
Dnfstrace.h305 __string(name, dentry->d_name.name)
312 __assign_str(name, dentry->d_name.name);
349 __string(name, dentry->d_name.name)
357 __assign_str(name, dentry->d_name.name);
444 __string(name, ctx->dentry->d_name.name)
452 __assign_str(name, ctx->dentry->d_name.name);
482 __string(name, ctx->dentry->d_name.name)
491 __assign_str(name, ctx->dentry->d_name.name);
520 __string(name, dentry->d_name.name)
527 __assign_str(name, dentry->d_name.name);
[all …]

1234567891011