Home
last modified time | relevance | path

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

/DragonOS/kernel/src/process/
H A Dstdio.rs33 .alloc_fd(stdin, None) in stdio_init()
41 .alloc_fd(stdout, None) in stdio_init()
49 .alloc_fd(stderr, None) in stdio_init()
/DragonOS/kernel/src/net/
H A Dsyscall.rs52 let fd = fd_table_guard.alloc_fd(f, None).map(|x| x as usize); in socket()
91 fds[0] = fd_table_guard.alloc_fd(File::new(inode0, FileMode::O_RDWR)?, None)?; in socketpair()
92 fds[1] = fd_table_guard.alloc_fd(File::new(inode1, FileMode::O_RDWR)?, None)?; in socketpair()
428 .alloc_fd(File::new(new_socket, file_mode)?, None)?; in do_accept()
/DragonOS/kernel/src/virt/kvm/
H A Dkvm_dev.rs194 .alloc_fd(file, None) in kvm_dev_ioctl_create_vm()
H A Dvm_dev.rs230 .alloc_fd(file, None) in kvm_vm_ioctl_create_vcpu()
/DragonOS/kernel/src/ipc/
H A Dsyscall.rs85 let read_fd = fd_table_guard.alloc_fd(read_file, None)?; in pipe2()
86 let write_fd = fd_table_guard.alloc_fd(write_file, None)?; in pipe2()
/DragonOS/kernel/src/filesystem/
H A Deventfd.rs265 let fd = fd_table_guard.alloc_fd(file, None).map(|x| x as usize); in sys_eventfd()
/DragonOS/kernel/src/filesystem/vfs/
H A Dopen.rs149 .alloc_fd(file, None) in do_sys_openat2()
H A Dfile.rs705 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd() method
H A Dsyscall.rs1039 let res = fd_table_guard.alloc_fd(new_file, None).map(|x| x as usize); in dup()
1121 .alloc_fd(new_file, Some(newfd)) in do_dup3()
/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs266 let fd = fd_table_guard.alloc_fd(ep_file, None)?; in do_create_epoll()