Searched refs:mmap_handle (Results 1 – 10 of 10) sorted by relevance
/external/libtextclassifier/native/lang_id/common/file/ |
D | mmap.cc | 134 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()
|
D | mmap.h | 112 bool Unmap(MmapHandle mmap_handle);
|
/external/libtextclassifier/native/utils/memory/ |
D | mmap.cc | 122 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()
|
D | mmap.h | 113 bool Unmap(MmapHandle mmap_handle);
|
/external/llvm-project/compiler-rt/lib/profile/ |
D | GCDAProfiling.c | 104 static HANDLE mmap_handle = NULL; variable 259 …mmap_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/ |
D | vsock.rs | 153 mmap_handle: -1, in test_vsock_ioctls()
|
/external/rust/crates/vmm_vhost/src/vhost_user/ |
D | mod.rs | 372 mmap_handle: eventfd.as_raw_fd(), in test_master_slave_process() 419 mmap_handle: region_file.as_raw_fd(), in test_master_slave_process()
|
D | master.rs | 179 if region.memory_size == 0 || region.mmap_handle < 0 { in set_mem_table() 188 ctx.append(®, 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/ |
D | handler.rs | 126 mmap_handle: mmap.as_raw_descriptor(), in set_mem_table()
|
/external/rust/crates/vmm_vhost/src/ |
D | backend.rs | 73 pub mmap_handle: RawFd, field
|