Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/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()
92 unsigned int prot = PROT_WRITE; in WriteClockUnitToMemory() local
93 int result = AshmemSetProt(memory.fd, static_cast<int>(prot)); in WriteClockUnitToMemory()
133 unsigned int prot = PROT_WRITE; in ReadClockUnitFromMemory() local
134 int result = AshmemSetProt(memory.fd, static_cast<int>(prot)); in ReadClockUnitFromMemory()
178 unsigned int prot = PROT_WRITE; in WriteFrameInfoToMemory() local
179 int result = AshmemSetProt(memory.fd, static_cast<int>(prot)); in WriteFrameInfoToMemory()
208 unsigned int prot = PROT_WRITE; in ReadFrameInfoFromMemory() local
209 int result = AshmemSetProt(memory.fd, static_cast<int>(prot)); in ReadFrameInfoFromMemory()
[all …]
/ohos5.0/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()
/ohos5.0/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, f… 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, f… in MapMemoryAddr()
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dselinux_share_mem.c34 int prot = PROT_READ; in InitSharedMem() local
36 prot = PROT_READ | PROT_WRITE; in InitSharedMem()
39 void *sharedMem = (void *)mmap(NULL, spaceSize, prot, MAP_SHARED, fd, 0); in InitSharedMem()
/ohos5.0/base/startup/init/services/param/linux/
H A Dparam_osadp.c88 int prot = PROT_READ; in GetSharedMem() local
90 prot = PROT_READ | PROT_WRITE; in GetSharedMem()
93 void *areaAddr = (void *)mmap(NULL, spaceSize, prot, MAP_SHARED, fd, 0); in GetSharedMem()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/utils/src/
H A Dshared_mem.cpp24 int SharedMemSetProt(int fd, int prot) in SharedMemSetProt() argument
26 return OHOS::AshmemSetProt(fd, prot); in SharedMemSetProt()
/ohos5.0/foundation/multimedia/media_foundation/src/buffer/avsharedmemory/
H A Davsharedmemorybase.cpp123 unsigned int prot = PROT_READ | PROT_WRITE; in MapMemory() local
125 prot &= ~PROT_WRITE; in MapMemory()
128 int result = AshmemSetProt(fd_, static_cast<int>(prot)); in MapMemory()
132 …void *addr = ::mmap(nullptr, static_cast<size_t>(capacity_), static_cast<int>(prot), MAP_SHARED, f… in MapMemory()
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/ashmem_fuzzer/
H A Dashmem_fuzzer.cpp56 int prot = dataProvider->ConsumeIntegral<int>(); in AshmemTestFunc() local
57 ashmem->SetProtection(prot); in AshmemTestFunc()
/ohos5.0/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 uint32_t itemSize = cJSON_GetArraySize(prot); in ParsePortList()
110 cJSON *item = cJSON_GetArrayItem(prot, i); in ParsePortList()
/ohos5.0/commonlibrary/memory_utils/libpurgeablemem/common/src/
H A Dux_page_table_c.c149 int prot = PROT_READ | PROT_WRITE; in CheckUxpt() local
153 void *dataPtr = mmap(NULL, dataSize, prot, type, -1, 0); in CheckUxpt()
162 void *ptes = mmap(NULL, uptSize, prot, type, -1, UxptePageNo((uint64_t)dataPtr) * PAGE_SIZE); in CheckUxpt()
421 int prot = PROT_READ | PROT_WRITE; in MapUxptePages() local
424 uxpte_t *ptes = (uxpte_t*)mmap(NULL, size, prot, type, -1, UxptePageNo(dataAddr) * PAGE_SIZE); in MapUxptePages()
/ohos5.0/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() local
74 …void *addr = ::mmap(nullptr, static_cast<size_t>(capacity_), static_cast<int>(prot), MAP_SHARED, f… in GetAddr()
/ohos5.0/foundation/resourceschedule/ffrt/src/util/
H A Dslab.h222 const int prot = PROT_READ | PROT_WRITE; in expand() local
223 char* p = reinterpret_cast<char*>(mmap(nullptr, MmapSz, prot, flags, -1, 0)); in expand()
227 p = reinterpret_cast<char*>(mmap(nullptr, MmapSz, prot, flags, -1, 0)); in expand()
/ohos5.0/drivers/hdf_core/interfaces/inner_api/utils/
H A Dshared_mem.h26 int SharedMemSetProt(int fd, int prot);
/ohos5.0/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_interface_type.h118 UsbDeviceType (int32_t deviceBaseClass, int32_t sub, int32_t prot, bool deviceType) in UsbDeviceType()
119 : baseClass(deviceBaseClass), subClass(sub), protocol(prot), isDeviceType(deviceType) {}; in UsbDeviceType()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dashmem.cpp138 int AshmemSetProt(int fd, int prot) in AshmemSetProt() argument
140 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot)); in AshmemSetProt()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dashmem.h48 int AshmemSetProt(int fd, int prot);
/ohos5.0/foundation/resourceschedule/ffrt/src/eu/
H A Dco_routine.cpp253 static void CoSetStackProt(CoRoutine* co, int prot) in CoSetStackProt() argument
261 int ret = mprotect(reinterpret_cast<void *>(static_cast<uintptr_t>(mp)), p_size, prot); in CoSetStackProt()
264 p_size, ret, prot, errno, strerror(errno)); in CoSetStackProt()
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxutil/
H A Ddfx_util.h51 void *mmap(void *addr, size_t length, int prot, int flags, int fd, size_t offset);
H A Ddfx_util.cpp219 void *mmap(void *addr, size_t length, int prot, int flags, int fd, size_t offset) in mmap() argument
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dashmem.h62 int AshmemSetProt(int fd, int prot);
/ohos5.0/base/update/updater/services/package/pkg_manager/
H A Dpkg_utils.h82 void *mmap(void *addr, size_t length, int prot, int flags, int fd, size_t offset);
H A Dpkg_utils.cpp323 [[maybe_unused]] int prot, [[maybe_unused]] int flags, int fd, [[maybe_unused]] size_t offset)
/ohos5.0/commonlibrary/c_utils/base/src/rust/
H A Dashmem.rs43 pub fn AshmemSetProt(fd: i32, prot: i32) -> i32; in AshmemSetProt()
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-apx-library.md205 mmap接口原型为:void \*mmap (void \*addr, size_t length, int prot, int flags, int fd, off_t offset)。

12