Searched refs:alloc_fd (Results 1 – 13 of 13) sorted by relevance
/DragonOS/kernel/src/process/ |
H A D | stdio.rs | 41 .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 D | mod.rs | 121 let fd = fd_table.write().alloc_fd(file, None).map(|x| x as usize)?; in bpf_prog_load()
|
/DragonOS/kernel/src/net/ |
H A D | syscall.rs | 52 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 D | kvm_dev.rs | 194 .alloc_fd(file, None) in kvm_dev_ioctl_create_vm()
|
H A D | vm_dev.rs | 230 .alloc_fd(file, None) in kvm_vm_ioctl_create_vcpu()
|
/DragonOS/kernel/src/ipc/ |
H A D | syscall.rs | 85 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 D | eventfd.rs | 278 let fd = fd_table_guard.alloc_fd(file, None).map(|x| x as usize); in sys_eventfd()
|
/DragonOS/kernel/src/perf/ |
H A D | mod.rs | 309 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 D | open.rs | 234 .alloc_fd(file, None) in do_sys_openat2()
|
H A D | file.rs | 721 pub fn alloc_fd(&mut self, file: File, fd: Option<i32>) -> Result<i32, SystemError> { in alloc_fd() method
|
H A D | syscall.rs | 1063 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 D | mod.rs | 246 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 D | mod.rs | 266 let fd = fd_table_guard.alloc_fd(ep_file, None)?; in do_create_epoll()
|