Home
last modified time | relevance | path

Searched refs:file_ops (Results 1 – 12 of 12) sorted by relevance

/DragonOS-0.1.3/kernel/src/syscall/
Dsyscall.c190 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/
Ddevfs.h20 …(uint16_t device_type, uint16_t sub_type, struct vfs_file_operations_t *file_ops, struct devfs_pri…
Ddevfs.c160 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()
Dinternal.h75 dentry->dir_inode->file_ops = private_inode_data->f_ops; in __devfs_fill_inode()
/DragonOS-0.1.3/kernel/src/filesystem/vfs/
DVFS.c501 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()
DVFS.h80 struct vfs_file_operations_t *file_ops; member
108 struct vfs_file_operations_t *file_ops; member
/DragonOS-0.1.3/kernel/src/process/
Dprocess.c165 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/
Doverview.md27   我们对文件进行操作都会使用到文件描述符,具体来说,就是要调用文件描述符之中的file_ops所包含的各种方法。
157 struct vfs_file_operations_t *file_ops;
186 **file_ops**
/DragonOS-0.1.3/kernel/src/ipc/
Dpipe.c168 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/
Dprocfs.c355 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/
Drootfs.c154 dentry->dir_inode->file_ops = &rootfs_file_ops; in rootfs_init()
/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat32.c336 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()