Searched refs:alloc_fd (Results 1 – 9 of 9) sorted by relevance
/DragonOS-0.1.9/kernel/src/process/ |
D | process.rs | 49 .alloc_fd(stdin, None) in stdio_init() 57 .alloc_fd(stdout, None) in stdio_init() 65 .alloc_fd(stderr, None) in stdio_init()
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | syscall.rs | 68 let read_fd = fd_table_guard.alloc_fd(read_file, None)?; in pipe2() 69 let write_fd = fd_table_guard.alloc_fd(write_file, None)?; in pipe2()
|
/DragonOS-0.1.9/kernel/src/net/ |
D | syscall.rs | 56 let fd = fd_table_guard.alloc_fd(f, None).map(|x| x as usize); in socket() 89 let mut alloc_fd = |socket: Box<dyn Socket>| -> Result<i32, SystemError> { in socketpair() localVariable 92 fd_table_guard.alloc_fd(file, None) in socketpair() 95 fds[0] = alloc_fd(socket0)?; in socketpair() 96 fds[1] = alloc_fd(socket1)?; in socketpair() 434 .alloc_fd(File::new(new_socket, file_mode)?, None)?; in do_accept()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | open.rs | 154 .alloc_fd(file, None) in do_sys_openat2()
|
D | syscall.rs | 619 let res = fd_table_guard.alloc_fd(new_file, None).map(|x| x as usize); in dup() 674 .alloc_fd(new_file, Some(newfd)) in do_dup2()
|
D | file.rs | 594 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd() method
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | kvm_dev.rs | 188 .alloc_fd(file, None) in kvm_dev_ioctl_create_vm()
|
D | vm_dev.rs | 224 .alloc_fd(file, None) in kvm_vm_ioctl_create_vcpu()
|
/DragonOS-0.1.9/kernel/src/net/event_poll/ |
D | mod.rs | 253 let fd = fd_table_guard.alloc_fd(ep_file, None)?; in do_create_epoll()
|