Home
last modified time | relevance | path

Searched refs:OwnedFd (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Virtualization/authfs/tests/common/src/
Dopen_then_run.rs27 use std::os::unix::io::{AsRawFd, OwnedFd, RawFd};
36 owned_fd: OwnedFd,
58 F: Fn(&str) -> Result<OwnedFd>, in parse_and_create_file_mapping() argument
107 Ok(OwnedFd::from( in parse_args()
116 Ok(OwnedFd::from( in parse_args()
128 Ok(OwnedFd::from( in parse_args()
/packages/modules/Virtualization/compos/composd/src/
Dfd_server_helper.rs26 use std::os::unix::io::{AsRawFd, OwnedFd};
35 pub ro_file_fds: Vec<OwnedFd>,
37 pub rw_file_fds: Vec<OwnedFd>,
39 pub ro_dir_fds: Vec<OwnedFd>,
41 pub rw_dir_fds: Vec<OwnedFd>,
Dodrefresh_task.rs42 use std::os::unix::io::{AsRawFd, OwnedFd};
251 fn open_dir(path: &Path) -> Result<OwnedFd> { in open_dir() argument
252 Ok(OwnedFd::from( in open_dir()
/packages/modules/Virtualization/vmclient/src/
Dlib.rs51 os::unix::io::{AsFd, AsRawFd, IntoRawFd, OwnedFd},
59 fn posix_pipe() -> Result<(OwnedFd, OwnedFd), io::Error> { in posix_pipe()
68 fn posix_socketpair() -> Result<(OwnedFd, OwnedFd), io::Error> { in posix_socketpair()
82 client_fd: OwnedFd,
/packages/modules/Virtualization/virtualizationmanager/src/
Dmain.rs33 use std::os::unix::io::{AsFd, FromRawFd, OwnedFd, RawFd};
76 fn take_fd_ownership(raw_fd: RawFd, owned_fds: &mut Vec<RawFd>) -> Result<OwnedFd, anyhow::Error> { in take_fd_ownership() argument
99 Ok(unsafe { OwnedFd::from_raw_fd(raw_fd) }) in take_fd_ownership()
Dcrosvm.rs38 use std::os::unix::io::{AsRawFd, OwnedFd, RawFd};
499 .deleteTapInterface(&ParcelFileDescriptor::new(OwnedFd::from(tap_file))) in monitor_vm_exit()
/packages/modules/Virtualization/authfs/service/src/
Dmain.rs31 use std::os::unix::io::{FromRawFd, OwnedFd};
117 unsafe fn prepare_authfs_service_socket() -> Result<OwnedFd> { in prepare_authfs_service_socket()
127 Ok(unsafe { OwnedFd::from_raw_fd(raw_fd) }) in prepare_authfs_service_socket()
/packages/modules/Virtualization/microdroid_manager/src/
Dvm_payload_service.rs29 use std::os::unix::io::OwnedFd;
130 vm_payload_service_fd: OwnedFd, in register_vm_payload_service() argument
Dmain.rs59 use std::os::unix::io::{FromRawFd, OwnedFd};
304 vm_payload_service_fd: OwnedFd, in try_run_payload() argument
495 unsafe fn prepare_vm_payload_service_socket() -> Result<OwnedFd> { in prepare_vm_payload_service_socket()
505 Ok(unsafe { OwnedFd::from_raw_fd(raw_fd) }) in prepare_vm_payload_service_socket()
/packages/modules/Virtualization/authfs/fd_server/src/
Dmain.rs34 use std::os::unix::io::{FromRawFd, OwnedFd};
101 fn convert_args(args: Args) -> Result<(BTreeMap<i32, FdConfig>, Option<OwnedFd>)> { in convert_args() argument
Daidl.rs30 use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, OwnedFd};
64 InputDir(OwnedFd),
67 OutputDir(OwnedFd),
331 let fd_owner = unsafe { OwnedFd::from_raw_fd(new_dir_fd) }; in createDirectoryInDirectory()