Searched refs:fds (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.2/kernel/src/syscall/ |
D | syscall.c | 169 if (current_pcb->fds[fd_num] == NULL) in sys_read() 175 struct vfs_file_t *file_ptr = current_pcb->fds[fd_num]; in sys_read() 208 if (current_pcb->fds[fd_num] == NULL) in sys_write() 214 struct vfs_file_t *file_ptr = current_pcb->fds[fd_num]; in sys_write() 244 if (current_pcb->fds[fd_num] == NULL) in sys_lseek() 247 struct vfs_file_t *file_ptr = current_pcb->fds[fd_num]; in sys_lseek() 437 struct vfs_file_t *filp = current_pcb->fds[fd]; in sys_getdents()
|
/DragonOS-0.1.2/kernel/src/process/ |
D | fork.c | 194 if (current_pcb->fds[i] == NULL) in process_copy_files() 197 pcb->fds[i] = (struct vfs_file_t *)kmalloc(sizeof(struct vfs_file_t), 0); in process_copy_files() 198 memcpy(pcb->fds[i], current_pcb->fds[i], sizeof(struct vfs_file_t)); in process_copy_files()
|
D | proc-types.h | 110 struct vfs_file_t *fds[PROC_MAX_FD_NUM]; member
|
D | process.c | 59 ….virtual_runtime = 0, .fds = {0}, .next_pcb = &proc, .prev_pcb = &proc, .parent_pcb = &proc, .exit… 720 if (pcb->fds[i] == NULL) in process_exit_files() 722 kfree(pcb->fds[i]); in process_exit_files() 726 memset(pcb->fds, 0, sizeof(struct vfs_file_t *) * PROC_MAX_FD_NUM); in process_exit_files() 833 struct vfs_file_t **f = current_pcb->fds; in process_fd_alloc()
|
/DragonOS-0.1.2/kernel/src/filesystem/VFS/ |
D | VFS.c | 554 if (current_pcb->fds[fd_num] == NULL) in vfs_close() 556 struct vfs_file_t *file_ptr = current_pcb->fds[fd_num]; in vfs_close() 563 current_pcb->fds[fd_num] = NULL; in vfs_close()
|