Home
last modified time | relevance | path

Searched refs:alloc_fd (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.9/kernel/src/process/
Dprocess.rs49 .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/
Dsyscall.rs68 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/
Dsyscall.rs56 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/
Dopen.rs154 .alloc_fd(file, None) in do_sys_openat2()
Dsyscall.rs619 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()
Dfile.rs594 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/
Dkvm_dev.rs188 .alloc_fd(file, None) in kvm_dev_ioctl_create_vm()
Dvm_dev.rs224 .alloc_fd(file, None) in kvm_vm_ioctl_create_vcpu()
/DragonOS-0.1.9/kernel/src/net/event_poll/
Dmod.rs253 let fd = fd_table_guard.alloc_fd(ep_file, None)?; in do_create_epoll()