/DragonOS-0.1.3/kernel/src/filesystem/vfs/ |
D | VFS.h | 40 struct vfs_index_node_t; 54 struct vfs_index_node_t *dir_inode; 72 struct vfs_index_node_t struct 125 void (*write_inode)(struct vfs_index_node_t *inode); // 将inode信息写入磁盘 140 …long (*create)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntry, int mod… 147 …struct vfs_dir_entry_t *(*lookup)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *d… 154 long (*mkdir)(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *dEntry, int mode); 155 long (*rmdir)(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *dEntry); 156 long (*rename)(struct vfs_index_node_t *old_inode, struct vfs_dir_entry_t *old_dEntry, 157 struct vfs_index_node_t *new_inode, struct vfs_dir_entry_t *new_dEntry); [all …]
|
D | internal.h | 45 int vfs_free_inode(struct vfs_index_node_t * inode);
|
D | VFS.c | 725 int vfs_unlink(struct user_namespace *mnt_userns, struct vfs_index_node_t *parent_inode, struct vfs… in vfs_unlink() 726 struct vfs_index_node_t **delegated_inode) in vfs_unlink() 736 struct vfs_index_node_t *target = dentry->dir_inode; in vfs_unlink() 829 struct vfs_index_node_t *p_inode = dentry->parent->dir_inode; in do_unlink_at() 880 struct vfs_index_node_t *vfs_alloc_inode() in vfs_alloc_inode() 882 struct vfs_index_node_t *inode = kzalloc(sizeof(struct vfs_index_node_t), 0); in vfs_alloc_inode()
|
D | dcache.c | 122 int vfs_free_inode(struct vfs_index_node_t *inode) in vfs_free_inode()
|
/DragonOS-0.1.3/kernel/src/filesystem/fat32/ |
D | fat_ent.h | 15 int fat32_alloc_clusters(struct vfs_index_node_t *inode, uint32_t *clusters, int32_t num_clusters); 24 int fat32_free_clusters(struct vfs_index_node_t *inode, int32_t cluster); 58 struct fat32_Directory_t *fat32_find_empty_dentry(struct vfs_index_node_t *parent_inode, uint32_t n… 99 int fat32_remove_entries(struct vfs_index_node_t *dir, struct fat32_slot_info *sinfo);
|
D | fat32.c | 20 static int vfat_find(struct vfs_index_node_t *dir, const char *name, struct fat32_slot_info *slot_i… 21 static int __fat32_search_long_short(struct vfs_index_node_t *parent_inode, const char *name, int n… 23 static int fat32_detach_inode(struct vfs_index_node_t *inode); 56 static int __fat32_search_long_short(struct vfs_index_node_t *parent_inode, const char *name, int n… in __fat32_search_long_short() 316 struct vfs_dir_entry_t *fat32_lookup(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t … in fat32_lookup() 329 struct vfs_index_node_t *p = vfs_alloc_inode(); in fat32_lookup() 480 void fat32_write_inode(struct vfs_index_node_t *inode) in fat32_write_inode() 536 long fat32_iput(struct vfs_dir_entry_t *dEntry, struct vfs_index_node_t *inode) in fat32_iput() 553 long fat32_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in fat32_open() 559 long fat32_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in fat32_close() [all …]
|
D | fat_ent.c | 17 int fat32_alloc_clusters(struct vfs_index_node_t *inode, uint32_t *clusters, int32_t num_clusters) in fat32_alloc_clusters() 112 int fat32_free_clusters(struct vfs_index_node_t *inode, int32_t cluster) in fat32_free_clusters() 185 struct fat32_Directory_t *fat32_find_empty_dentry(struct vfs_index_node_t *parent_inode, uint32_t n… in fat32_find_empty_dentry() 362 struct vfs_index_node_t *inode = dEntry->dir_inode; in fat32_fill_shortname() 433 int fat32_remove_entries(struct vfs_index_node_t *dir, struct fat32_slot_info *sinfo) in fat32_remove_entries()
|
D | fat32.h | 209 long fat32_create(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntry, int m…
|
/DragonOS-0.1.3/kernel/src/driver/tty/ |
D | tty.c | 15 long tty_open(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in tty_open() 28 long tty_close(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in tty_close() 43 long tty_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *filp, uint64_t cmd, uint64_t arg) in tty_ioctl()
|
/DragonOS-0.1.3/kernel/src/filesystem/devfs/ |
D | devfs.c | 50 static void devfs_write_inode(struct vfs_index_node_t *inode) { return; } in devfs_write_inode() 64 static long devfs_iput(struct vfs_dir_entry_t *dEntry, struct vfs_index_node_t *inode) { return 0; } in devfs_iput() 74 static long devfs_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in devfs_open() 78 static long devfs_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) { return 0; } in devfs_close() 82 static long devfs_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, … in devfs_ioctl() 134 static long devfs_create(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntry… in devfs_create() 139 static struct vfs_dir_entry_t *devfs_lookup(struct vfs_index_node_t *parent_inode, struct vfs_dir_e… in devfs_lookup() 157 static long devfs_mkdir(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *dEntry, int mode) in devfs_mkdir() 170 static long devfs_rmdir(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *dEntry) { return 0;… in devfs_rmdir() 171 static long devfs_rename(struct vfs_index_node_t *old_inode, struct vfs_dir_entry_t *old_dEntry, st… in devfs_rename()
|
D | devfs-types.h | 46 struct vfs_index_node_t * inode; // 当前私有信息所绑定的inode
|
D | internal.h | 72 static inline void __devfs_fill_inode(struct vfs_dir_entry_t *dentry, struct vfs_index_node_t *inod… in __devfs_fill_inode()
|
/DragonOS-0.1.3/docs/kernel/filesystem/vfs/ |
D | overview.md | 121 void (*write_inode)(struct vfs_index_node_t *inode); // 将inode信息写入磁盘 143 ### struct vfs_index_node_t 150 struct vfs_index_node_t 207 …long (*create)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntry, int mod… 208 …struct vfs_dir_entry_t *(*lookup)(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *d… 209 long (*mkdir)(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *dEntry, int mode); 210 long (*rmdir)(struct vfs_index_node_t *inode, struct vfs_dir_entry_t *dEntry); 211 …long (*rename)(struct vfs_index_node_t *old_inode, struct vfs_dir_entry_t *old_dEntry, struct vfs_…
|
/DragonOS-0.1.3/kernel/src/filesystem/procfs/ |
D | procfs.c | 60 static void procfs_write_inode(struct vfs_index_node_t *inode) in procfs_write_inode() 82 static long procfs_iput(struct vfs_dir_entry_t *dEntry, struct vfs_index_node_t *inode) in procfs_iput() 105 static long procfs_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in procfs_open() 171 static long procfs_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in procfs_close() 232 struct vfs_index_node_t *inode = file_ptr->dEntry->dir_inode; in procfs_lseek() 258 static long procfs_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd,… in procfs_ioctl() 339 static long procfs_create(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dest_dEntr… in procfs_create() 350 struct vfs_index_node_t *inode = vfs_alloc_inode(); in procfs_create() 364 static struct vfs_dir_entry_t *procfs_lookup(struct vfs_index_node_t *parent_inode, struct vfs_dir_… in procfs_lookup() 377 static long procfs_mkdir(struct vfs_index_node_t *parent_inode, struct vfs_dir_entry_t *dEntry, int… in procfs_mkdir() [all …]
|
/DragonOS-0.1.3/kernel/src/filesystem/rootfs/ |
D | rootfs.c | 26 static struct vfs_dir_entry_t *rootfs_lookup(struct vfs_index_node_t *parent_inode, struct vfs_dir_… in rootfs_lookup() 41 static long rootfs_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in rootfs_open() 45 static long rootfs_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) { return 0; } in rootfs_close() 49 static long rootfs_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd,… in rootfs_ioctl() 87 static long rootfs_iput(struct vfs_dir_entry_t *dEntry, struct vfs_index_node_t *inode) { return 0;… in rootfs_iput()
|
/DragonOS-0.1.3/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 49 long ps2_keyboard_open(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in ps2_keyboard_open() 63 long ps2_keyboard_close(struct vfs_index_node_t *inode, struct vfs_file_t *filp) in ps2_keyboard_close() 79 long ps2_keyboard_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *filp, uint64_t cmd, uint… in ps2_keyboard_ioctl()
|
/DragonOS-0.1.3/kernel/src/ipc/ |
D | pipe.c | 97 long pipe_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in pipe_close()
|