Home
last modified time | relevance | path

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

/external/libtextclassifier/native/lang_id/common/file/
Dmmap.cc134 bool Unmap(MmapHandle mmap_handle) { in Unmap() argument
135 if (!mmap_handle.ok()) { in Unmap()
139 bool succeeded = UnmapViewOfFile(mmap_handle.start()); in Unmap()
240 bool Unmap(MmapHandle mmap_handle) { in Unmap() argument
241 if (!mmap_handle.ok()) { in Unmap()
245 if (munmap(mmap_handle.start(), mmap_handle.num_bytes()) != 0) { in Unmap()
Dmmap.h112 bool Unmap(MmapHandle mmap_handle);
/external/libtextclassifier/native/utils/memory/
Dmmap.cc122 bool Unmap(MmapHandle mmap_handle) { in Unmap() argument
123 if (!mmap_handle.ok()) { in Unmap()
127 if (munmap(mmap_handle.unmap_addr(), mmap_handle.num_bytes()) != 0) { in Unmap()
Dmmap.h113 bool Unmap(MmapHandle mmap_handle);
/external/llvm-project/compiler-rt/lib/profile/
DGCDAProfiling.c104 static HANDLE mmap_handle = NULL; variable
259mmap_handle = CreateFileMapping(mmap_fd, NULL, PAGE_READWRITE, DWORD_HI(file_size), DWORD_LO(file_… in map_file()
260 if (mmap_handle == NULL) { in map_file()
266 write_buffer = MapViewOfFile(mmap_handle, FILE_MAP_WRITE, 0, 0, file_size); in map_file()
270 CloseHandle(mmap_handle); in map_file()
299 if (!CloseHandle(mmap_handle)) { in unmap_file()
304 mmap_handle = NULL; in unmap_file()
/external/rust/crates/vmm_vhost/src/vhost_kern/
Dvsock.rs153 mmap_handle: -1, in test_vsock_ioctls()
/external/rust/crates/vmm_vhost/src/vhost_user/
Dmod.rs372 mmap_handle: eventfd.as_raw_fd(), in test_master_slave_process()
419 mmap_handle: region_file.as_raw_fd(), in test_master_slave_process()
Dmaster.rs179 if region.memory_size == 0 || region.mmap_handle < 0 { in set_mem_table()
188 ctx.append(&reg, region.mmap_handle); in set_mem_table()
467 if region.memory_size == 0 || region.mmap_handle < 0 { in add_mem_region()
477 let fds = [region.mmap_handle]; in add_mem_region()
/external/crosvm/devices/src/virtio/vhost/user/
Dhandler.rs126 mmap_handle: mmap.as_raw_descriptor(), in set_mem_table()
/external/rust/crates/vmm_vhost/src/
Dbackend.rs73 pub mmap_handle: RawFd, field