Home
last modified time | relevance | path

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

/external/crosvm/kvm/tests/
Dread_only_memory.rs27 MemoryMapping::from_fd(&mem, mem_size as usize).expect("failed to create memory mapping"); in test_run()
50 MemoryMapping::from_fd(&mem, mem_size as usize).expect("failed to create memory mapping"), in test_run()
62 let mmap_ro = MemoryMapping::from_fd(&mem_ro, 0x1000).expect("failed to create memory mapping"); in test_run()
68 MemoryMapping::from_fd(&mem_ro, 0x1000).expect("failed to create memory mapping"), in test_run()
Ddirty_log.rs25 MemoryMapping::from_fd(&mem, mem_size as usize).expect("failed to create memory mapping"); in test_run()
48 MemoryMapping::from_fd(&mem, mem_size as usize) in test_run()
/external/crosvm/sys_util/src/
Dshm.rs352 MemoryMapping::from_fd(&shm, shm.size() as usize).expect("failed to map shared memory"); in mmap_page()
354 MemoryMapping::from_fd(&shm, shm.size() as usize).expect("failed to map shared memory"); in mmap_page()
383 MemoryMapping::from_fd(&shm, shm.size() as usize).expect("failed to map shared memory"); in mmap_page_offset()
Dmmap.rs163 pub fn from_fd(fd: &dyn AsRawFd, size: usize) -> Result<MemoryMapping> { in from_fd() method
864 let res = MemoryMapping::from_fd(&fd, 1024).unwrap_err(); in map_invalid_fd()
/external/crosvm/gpu_display/src/
Dlib.rs242 let buffer_mem = MemoryMapping::from_fd(&buffer_shm, buffer_size).unwrap(); in create_surface()
/external/libcxx/src/filesystem/
Doperations.cpp738 FileDescriptor from_fd = in __copy_file() local
743 auto from_st = from_fd.get_status(); in __copy_file()
744 StatT const& from_stat = from_fd.get_stat(); in __copy_file()
813 if (!copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()
/external/crosvm/vm_control/src/
Dlib.rs319 let mmap = match MemoryMapping::from_fd(fd, size) { in register_memory()
/external/python/cpython3/Lib/test/
Dtest_subprocess.py2243 for from_fd in from_fds:
2245 os.dup2(f.fileno(), from_fd)
2252 for from_fd, to_fd in zip(from_fds, to_fds):
2253 kwargs[arg_names[to_fd]] = from_fd
2269 for from_fd, to_fd in zip(from_fds, to_fds):
2270 os.lseek(from_fd, 0, os.SEEK_SET)
2271 read_bytes = os.read(from_fd, 1024)
/external/crosvm/kvm/src/
Dlib.rs1139 MemoryMapping::from_fd(&vcpu, run_mmap_size).map_err(|_| Error::new(ENOSPC))?; in new()