Home
last modified time | relevance | path

Searched refs:prot (Results 1 - 10 of 10) sorted by relevance

/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/
H A Dav_sync_utils.cpp38 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 Dinvoker_factory.h46 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 Dav_shared_memory_ext.cpp191 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 Dav_hardware_memory.cpp133 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 Davsharedmemorybase.cpp120 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 Dimage_codec_buffer.cpp73 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 Dashmem.h45 * @param prot Value of protection flag.
48 int AshmemSetProt(int fd, int prot);
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_default_rule_parser.cpp106 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 Dslab.h221 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 Dco_routine.cpp261 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()

Completed in 7 milliseconds