Home
last modified time | relevance | path

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

/DragonOS/kernel/src/process/
H A Dstdio.rs41 .alloc_fd(stdin, None) in stdio_init()
49 .alloc_fd(stdout, None) in stdio_init()
57 .alloc_fd(stderr, None) in stdio_init()
/DragonOS/kernel/src/bpf/prog/
H A Dmod.rs121 let fd = fd_table.write().alloc_fd(file, None).map(|x| x as usize)?; in bpf_prog_load()
/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.rs278 let fd = fd_table_guard.alloc_fd(file, None).map(|x| x as usize); in sys_eventfd()
/DragonOS/kernel/src/perf/
H A Dmod.rs309 let fd = fd_table.write().alloc_fd(file, None).map(|x| x as usize)?; in perf_event_open()
/DragonOS/kernel/src/filesystem/vfs/
H A Dopen.rs234 .alloc_fd(file, None) in do_sys_openat2()
H A Dfile.rs721 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd() method
H A Dsyscall.rs1063 let res = fd_table_guard.alloc_fd(new_file, None).map(|x| x as usize); in dup()
1145 .alloc_fd(new_file, Some(newfd)) in do_dup3()
/DragonOS/kernel/src/bpf/map/
H A Dmod.rs246 let fd = fd_table.write().alloc_fd(file, None).map(|x| x as usize)?; in bpf_map_create()
/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs266 let fd = fd_table_guard.alloc_fd(ep_file, None)?; in do_create_epoll()