/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_sync_utils.cpp | 38 unsigned int prot = PROT_READ | PROT_WRITE;
in CreateAVTransSharedMemory() local 39 int result = AshmemSetProt(fd, static_cast<int>(prot));
in CreateAVTransSharedMemory() 46 void *addr = ::mmap(nullptr, size, static_cast<int>(prot), MAP_SHARED, fd, 0);
in CreateAVTransSharedMemory() 92 unsigned int prot = PROT_WRITE;
in WriteClockUnitToMemory() local 93 int result = AshmemSetProt(memory.fd, static_cast<int>(prot));
in WriteClockUnitToMemory() 96 void *addr = ::mmap(nullptr, static_cast<size_t>(memory.size), static_cast<int>(prot), MAP_SHARED, memory.fd, 0);
in WriteClockUnitToMemory() 133 unsigned int prot = PROT_WRITE;
134 int result = AshmemSetProt(memory.fd, static_cast<int>(prot));
137 void *addr = ::mmap(nullptr, static_cast<size_t>(memory.size), static_cast<int>(prot), MAP_SHARED, memory.fd, 0);
178 unsigned int prot [all...] |
/foundation/communication/ipc/ipc/native/src/mock/include/ |
H A D | invoker_factory.h | 46 InvokerDelegator(int prot); 55 template <typename T> InvokerDelegator<T>::InvokerDelegator(int prot) in InvokerDelegator() argument 57 prot_ = prot; in InvokerDelegator() 65 InvokerFactory::Get().Register(prot, invokerObject); in InvokerDelegator()
|
/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | av_shared_memory_ext.cpp | 191 unsigned int prot = PROT_READ | PROT_WRITE; in MapMemoryAddr() local 193 prot &= ~PROT_WRITE; in MapMemoryAddr() 195 prot &= ~PROT_READ; in MapMemoryAddr() 197 int result = AshmemSetProt(fd_, static_cast<int>(prot)); in MapMemoryAddr() 201 void *addr = ::mmap(nullptr, static_cast<size_t>(capacity_), static_cast<int>(prot), MAP_SHARED, fd_, 0); in MapMemoryAddr()
|
H A D | av_hardware_memory.cpp | 133 unsigned int prot = PROT_READ | PROT_WRITE; in MapMemoryAddr() local 136 prot &= ~PROT_WRITE; in MapMemoryAddr() 138 prot &= ~PROT_READ; in MapMemoryAddr() 140 void *addr = ::mmap(nullptr, static_cast<size_t>(capacity_), static_cast<int>(prot), MAP_SHARED, fd_, 0); in MapMemoryAddr()
|
/foundation/multimedia/media_foundation/src/buffer/avsharedmemory/ |
H A D | avsharedmemorybase.cpp | 120 unsigned int prot = PROT_READ | PROT_WRITE; in MapMemory() local 122 prot &= ~PROT_WRITE; in MapMemory() 125 int result = AshmemSetProt(fd_, static_cast<int>(prot)); in MapMemory() 129 void *addr = ::mmap(nullptr, static_cast<size_t>(capacity_), static_cast<int>(prot), MAP_SHARED, fd_, 0); in MapMemory()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/ |
H A D | image_codec_buffer.cpp | 73 unsigned int prot = PROT_READ | PROT_WRITE; in GetAddr() 74 void *addr = ::mmap(nullptr, static_cast<size_t>(capacity_), static_cast<int>(prot), MAP_SHARED, fd_, 0); in GetAddr()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | ashmem.h | 45 * @param prot Value of protection flag. 48 int AshmemSetProt(int fd, int prot);
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_default_rule_parser.cpp | 106 cJSON *prot = cJSON_GetObjectItem(mem, jsonKey.c_str()); in ParsePortList() local 107 if (prot != nullptr && cJSON_IsArray(prot)) { in ParsePortList() 108 int itemSize = cJSON_GetArraySize(prot); in ParsePortList() 110 cJSON *item = cJSON_GetArrayItem(prot, i); in ParsePortList()
|
/foundation/resourceschedule/ffrt/src/util/ |
H A D | slab.h | 221 const int prot = PROT_READ | PROT_WRITE; in expand() local 222 char* p = reinterpret_cast<char*>(mmap(nullptr, MmapSz, prot, flags, -1, 0)); in expand() 226 p = reinterpret_cast<char*>(mmap(nullptr, MmapSz, prot, flags, -1, 0)); in expand()
|
/foundation/resourceschedule/ffrt/src/eu/ |
H A D | co_routine.cpp | 261 static void CoSetStackProt(CoRoutine* co, int prot) in CoSetStackProt() argument 269 int ret = mprotect(reinterpret_cast<void *>(static_cast<uintptr_t>(mp)), p_size, prot); in CoSetStackProt() 271 "coroutine size:%lu, mp:0x%lx, page_size:%zu, result:%d, prot:%d, err:%d, %s", in CoSetStackProt() 273 p_size, ret, prot, errno, strerror(errno)); in CoSetStackProt()
|