Searched refs:alloc_fd (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.7/kernel/src/ipc/ |
D | syscall.rs | 24 let read_fd = current_pcb().alloc_fd(read_file.unwrap(), None); in do_pipe() 29 let write_fd = current_pcb().alloc_fd(write_file.unwrap(), None); in do_pipe()
|
/DragonOS-0.1.7/kernel/src/process/ |
D | process.rs | 187 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd() method 421 assert_eq!(current_pcb().alloc_fd(stdin, None).unwrap(), 0); in init_stdio() 422 assert_eq!(current_pcb().alloc_fd(stdout, None).unwrap(), 1); in init_stdio() 423 assert_eq!(current_pcb().alloc_fd(stderr, None).unwrap(), 2); in init_stdio()
|
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | syscall.rs | 362 let res = current_pcb().alloc_fd(*file_cp.unwrap(), None); in do_dup() 412 let res = current_pcb().alloc_fd(*file_cp.unwrap(), Some(newfd)); in do_dup2()
|
D | core.rs | 258 return current_pcb().alloc_fd(file, None); in do_open()
|
/DragonOS-0.1.7/kernel/src/net/ |
D | syscall.rs | 71 let fd = current_pcb().alloc_fd(f, None).map(|x| x as i64); in do_socket() 520 let new_fd = current_pcb().alloc_fd(File::new(new_socket, FileMode::O_RDWR)?, None)?; in do_accept()
|