Searched refs:shm_ (Results 1 – 8 of 8) sorted by relevance
/external/libchrome/base/memory/ |
D | shared_memory_posix.cc | 45 : shm_(handle), read_only_(read_only) {} in SharedMemory() 93 DCHECK(!shm_.IsValid()); in Create() 199 shm_ = SharedMemoryHandle(FileDescriptor(mapped_file, false), options.size, in Create() 203 options.size, shm_.GetGUID()); in Create() 250 shm_ = SharedMemoryHandle(FileDescriptor(mapped_file, false), 0u, in Open() 253 FileDescriptor(readonly_mapped_file, false), 0, shm_.GetGUID()); in Open() 259 if (!shm_.IsValid()) in MapAt() 273 int ashmem_bytes = ashmem_get_size_region(shm_.GetHandle()); in MapAt() 281 if (shm_.IsReadOnly()) { in MapAt() 290 if (!shm_.SetRegionReadOnly()) { // Ensure the region is read-only. in MapAt() [all …]
|
D | shared_memory_android.cc | 21 DCHECK(!shm_.IsValid()); in Create() 30 shm_ = SharedMemoryHandle::ImportHandle(fd, options.size); in Create() 31 if (!shm_.IsValid()) { in Create() 37 int err = ashmem_set_prot_region(shm_.GetHandle(), flags); in Create() 61 if (shm_.IsValid()) { in Close() 62 shm_.Close(); in Close() 63 shm_ = SharedMemoryHandle(); in Close() 70 SharedMemoryHandle handle = shm_.Duplicate(); in GetReadOnlyHandle()
|
D | ref_counted_memory.cc | 89 : shm_(std::move(shm)), size_(size) { in RefCountedSharedMemory() 90 DCHECK(shm_); in RefCountedSharedMemory() 91 DCHECK(shm_->memory()); in RefCountedSharedMemory() 93 DCHECK_LE(size_, shm_->mapped_size()); in RefCountedSharedMemory() 99 return static_cast<const unsigned char*>(shm_->memory()); in front()
|
D | shared_memory.h | 241 SharedMemoryHandle shm_; variable
|
D | ref_counted_memory.h | 159 const std::unique_ptr<SharedMemory> shm_; variable
|
/external/libchrome/libchrome_tools/patch/ |
D | shared_memory_posix.patch | 24 FileDescriptor(readonly_mapped_file, false), 0, shm_.GetGUID()); 31 if (!shm_.IsValid()) 45 - if (shm_.IsReadOnly()) { 54 - if (!shm_.SetRegionReadOnly()) { // Ensure the region is read-only. 58 + // if (shm_.IsReadOnly()) { 67 + // if (!shm_.SetRegionReadOnly()) { // Ensure the region is read-only. 81 if (shm_.IsValid()) { 82 shm_.Close();
|
/external/perfetto/test/ |
D | test_helper.h | 231 std::move(shm_), std::move(shm_arbiter_)); in Connect() 245 shm_ = factory.CreateSharedMemory(1024 * 1024); in CreateProducerProvidedSmb() 246 shm_arbiter_ = SharedMemoryArbiter::CreateUnboundInstance(shm_.get(), 4096); in CreateProducerProvidedSmb() 263 std::unique_ptr<SharedMemory> shm_; variable
|
/external/python/cpython3/ |
D | configure.ac | 5795 # shm_* may only be available if linking against librt
|