Searched refs:file_ops (Results 1 – 12 of 12) sorted by relevance
/DragonOS-0.1.3/kernel/src/syscall/ |
D | syscall.c | 190 if (file_ptr->file_ops && file_ptr->file_ops->read) in sys_read() 191 ret = file_ptr->file_ops->read(file_ptr, (char *)buf, count, &(file_ptr->position)); in sys_read() 243 if (file_ptr->file_ops && file_ptr->file_ops->write) in sys_write() 244 ret = file_ptr->file_ops->write(file_ptr, (char *)buf, count, &(file_ptr->position)); in sys_write() 275 if (file_ptr->file_ops && file_ptr->file_ops->lseek) in sys_lseek() 276 retval = file_ptr->file_ops->lseek(file_ptr, offset, whence); in sys_lseek() 469 if (filp->file_ops && filp->file_ops->readdir) in sys_getdents() 470 retval = filp->file_ops->readdir(filp, dirent, &vfs_fill_dirent); in sys_getdents()
|
/DragonOS-0.1.3/kernel/src/filesystem/devfs/ |
D | devfs.h | 20 …(uint16_t device_type, uint16_t sub_type, struct vfs_file_operations_t *file_ops, struct devfs_pri…
|
D | devfs.c | 160 dEntry->dir_inode->file_ops = &devfs_file_ops; in devfs_mkdir() 195 devfs_root_dentry->dir_inode->file_ops = &devfs_file_ops; in __devfs_init_root_inode() 223 …(uint16_t device_type, uint16_t sub_type, struct vfs_file_operations_t *file_ops, struct devfs_pri… in devfs_register_device() argument 229 private_info->f_ops = file_ops; in devfs_register_device()
|
D | internal.h | 75 dentry->dir_inode->file_ops = private_inode_data->f_ops; in __devfs_fill_inode()
|
/DragonOS-0.1.3/kernel/src/filesystem/vfs/ |
D | VFS.c | 501 file_ptr->file_ops = dentry->dir_inode->file_ops; in do_open() 504 if (file_ptr->file_ops && file_ptr->file_ops->open) in do_open() 505 errcode = file_ptr->file_ops->open(dentry->dir_inode, file_ptr); in do_open() 559 if (file_ptr->file_ops && file_ptr->file_ops->close) in vfs_close() 560 ret = file_ptr->file_ops->close(file_ptr->dEntry->dir_inode, file_ptr); in vfs_close()
|
D | VFS.h | 80 struct vfs_file_operations_t *file_ops; member 108 struct vfs_file_operations_t *file_ops; member
|
/DragonOS-0.1.3/kernel/src/process/ |
D | process.c | 165 filp->file_ops = dentry->dir_inode->file_ops; in process_open_exec_file() 191 pos = filp->file_ops->lseek(filp, 0, SEEK_SET); in process_load_elf_file() 192 retval = filp->file_ops->read(filp, (char *)buf, sizeof(Elf64_Ehdr), &pos); in process_load_elf_file() 234 pos = filp->file_ops->lseek(filp, pos, SEEK_SET); in process_load_elf_file() 235 …filp->file_ops->read(filp, (char *)buf, (uint64_t)ehdr.e_phentsize * (uint64_t)ehdr.e_phnum, &pos); in process_load_elf_file() 313 pos = filp->file_ops->lseek(filp, pos, SEEK_SET); in process_load_elf_file() 318 … val = filp->file_ops->read(filp, (char *)(virt_base + beginning_offset), to_trans, &pos); in process_load_elf_file()
|
/DragonOS-0.1.3/docs/kernel/filesystem/vfs/ |
D | overview.md | 27   我们对文件进行操作都会使用到文件描述符,具体来说,就是要调用文件描述符之中的file_ops所包含的各种方法。 157 struct vfs_file_operations_t *file_ops; 186 **file_ops**
|
/DragonOS-0.1.3/kernel/src/ipc/ |
D | pipe.c | 168 read_file->file_ops = &g_pipe_file_ops; in sys_pipe() 171 write_file->file_ops = &g_pipe_file_ops; in sys_pipe()
|
/DragonOS-0.1.3/kernel/src/filesystem/procfs/ |
D | procfs.c | 355 inode->file_ops = &procfs_file_ops; in procfs_create() 396 inode->file_ops = &procfs_file_ops; in procfs_mkdir() 422 procfs_root_dentry->dir_inode->file_ops = &procfs_file_ops; in __procfs_init_root_inode()
|
/DragonOS-0.1.3/kernel/src/filesystem/rootfs/ |
D | rootfs.c | 154 dentry->dir_inode->file_ops = &rootfs_file_ops; in rootfs_init()
|
/DragonOS-0.1.3/kernel/src/filesystem/fat32/ |
D | fat32.c | 336 p->file_ops = &fat32_file_ops; in fat32_lookup() 428 sb_ptr->root->dir_inode->file_ops = &fat32_file_ops; in fat32_read_superblock() 872 inode->file_ops = &fat32_file_ops; in fat32_create() 983 inode->file_ops = &fat32_file_ops; in fat32_mkdir()
|