Home
last modified time | relevance | path

Searched refs:shm_ (Results 1 – 8 of 8) sorted by relevance

/external/libchrome/base/memory/
Dshared_memory_posix.cc45 : 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 …]
Dshared_memory_android.cc21 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()
Dref_counted_memory.cc89 : 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()
Dshared_memory.h241 SharedMemoryHandle shm_; variable
Dref_counted_memory.h159 const std::unique_ptr<SharedMemory> shm_; variable
/external/libchrome/libchrome_tools/patch/
Dshared_memory_posix.patch24 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/
Dtest_helper.h231 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/
Dconfigure.ac5795 # shm_* may only be available if linking against librt