Searched refs:name_length (Results 1 – 9 of 9) sorted by relevance
/DragonOS-0.1.3/kernel/src/filesystem/vfs/ |
D | mount.c | 34 strncpy(new_dentry->name, old_dentry->name, old_dentry->name_length); in do_mount() 35 …name=%s, old_dentry->name_length=%d", new_dentry->name, old_dentry->name, old_dentry->name_length); in do_mount()
|
D | VFS.c | 56 new_dentry->name = kzalloc(target_dentry->name_length + 1, 0); in vfs_mount_fs() 57 new_dentry->name_length = target_dentry->name_length; in vfs_mount_fs() 177 dentry->name_length = tmp_path_len; in vfs_path_walk() 305 subdir_dentry->name_length = pathlen - last_slash - 2; in vfs_mkdir() 307 subdir_dentry->name_length = pathlen - last_slash - 1; in vfs_mkdir() 309 … for (int i = last_slash + 1, cnt = 0; i < pathlen && cnt < subdir_dentry->name_length; ++i, ++cnt) in vfs_mkdir() 441 dentry->name_length = path_len - tmp_index - 2; in do_open() 444 strncpy(dentry->name, path + tmp_index + 1, dentry->name_length); in do_open()
|
D | VFS.h | 48 int name_length; // 名字的长度(不包含字符串末尾的'\0') member
|
/DragonOS-0.1.3/kernel/src/filesystem/rootfs/ |
D | rootfs.c | 71 char *name = (char *)kzalloc(target_dent->name_length + 1, 0); in rootfs_readdir() 72 strncpy(name, target_dent->name, target_dent->name_length); in rootfs_readdir() 76 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in rootfs_readdir() 129 dentry->name_length = strlen(name); in rootfs_add_dir() 147 dentry->name_length = 1; in rootfs_init()
|
/DragonOS-0.1.3/kernel/src/filesystem/fat32/ |
D | fat_ent.c | 327 for (tmp_index = 0; tmp_index < min(8, dEntry->name_length); ++tmp_index) in fat32_fill_shortname() 388 int name_length = dEntry->name_length + 1; in fat32_fill_longname() local 397 if (current_name_index < name_length) in fat32_fill_longname() 404 if (current_name_index < name_length) in fat32_fill_longname() 411 if (current_name_index < name_length) in fat32_fill_longname()
|
D | fat32.c | 423 sb_ptr->root->name_length = 1; in fat32_read_superblock() 858 retval = fat32_check_name_available(dest_dEntry->name, dest_dEntry->name_length, 0); in fat32_create() 882 uint32_t cnt_longname = (dest_dEntry->name_length + 25) / 26; in fat32_create() 959 retval = fat32_check_name_available(dEntry->name, dEntry->name_length, 0); in fat32_mkdir() 965 uint32_t cnt_longname = (dEntry->name_length + 25) / 26; in fat32_mkdir()
|
/DragonOS-0.1.3/kernel/src/filesystem/procfs/ |
D | procfs.c | 289 char *name = (char *)kzalloc(target_dent->name_length + 1, 0); in procfs_readdir() 290 strncpy(name, target_dent->name, target_dent->name_length); in procfs_readdir() 297 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in procfs_readdir() 344 retval = __check_name_available(dest_dEntry->name, dest_dEntry->name_length, 0); in procfs_create() 382 retval = __check_name_available(dEntry->name, dEntry->name_length, 0); in procfs_mkdir()
|
/DragonOS-0.1.3/kernel/src/filesystem/devfs/ |
D | devfs.c | 104 char *name = (char *)kzalloc(target_dent->name_length + 1, 0); in devfs_readdir() 105 strncpy(name, target_dent->name, target_dent->name_length); in devfs_readdir() 112 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in devfs_readdir()
|
D | internal.h | 94 dentry->name_length = strlen(name); in __devfs_fill_dentry()
|