Home
last modified time | relevance | path

Searched refs:parent_dentry (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.3/kernel/src/filesystem/devfs/
Dinternal.h34 static inline struct vfs_dir_entry_t *__devfs_find_dentry(struct vfs_dir_entry_t *parent_dentry, co… in __devfs_find_dentry() argument
36 struct List *list = &parent_dentry->subdirs_list; in __devfs_find_dentry()
37 while (list_next(list) != &parent_dentry->subdirs_list) in __devfs_find_dentry()
55 static inline struct vfs_dir_entry_t *__devfs_find_dir(struct vfs_dir_entry_t *parent_dentry, const… in __devfs_find_dir() argument
57 struct vfs_dir_entry_t *target_dent = __devfs_find_dentry(parent_dentry, name); in __devfs_find_dir()
103 #define __devfs_dentry_bind_parent(parent_dentry, dentry) ({ \ argument
104 (dentry)->parent = (parent_dentry); \
105 list_append(&((parent_dentry)->subdirs_list), &((dentry)->child_node_list)); \
/DragonOS-0.1.3/kernel/src/filesystem/vfs/
DVFS.c421 struct vfs_dir_entry_t *parent_dentry = NULL; in do_open() local
427 parent_dentry = vfs_path_walk(path, 0); in do_open()
428 if (parent_dentry == NULL) in do_open()
436 parent_dentry = vfs_root_sb->root; in do_open()
445 dentry->parent = parent_dentry; in do_open()
448 spin_lock(&parent_dentry->lockref.lock); in do_open()
449 spin_lock(&parent_dentry->dir_inode->lockref.lock); in do_open()
451 …uint64_t retval = parent_dentry->dir_inode->inode_ops->create(parent_dentry->dir_inode, dentry, 0); in do_open()
452 spin_unlock(&parent_dentry->dir_inode->lockref.lock); // 解锁inode in do_open()
460 spin_unlock(&parent_dentry->lockref.lock); in do_open()
[all …]
Dmount.c31 mp->parent_dentry = old_dentry->parent; in do_mount()
82 if (dentry == tmp->parent_dentry) in mount_find_mnt_list_by_parent()
Dmount.h12 struct vfs_dir_entry_t *parent_dentry; // 被挂载前,父目录项的dentry member