Home
last modified time | relevance | path

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

/ohos5.0/drivers/external_device_manager/frameworks/ddk/base/
H A Dddk_api.cpp28 static std::unordered_map<int32_t, OHOS::sptr<OHOS::Ashmem>> g_shareMemoryMap; variable
64 g_shareMemoryMap[ddkAshmem->ashmemFd] = shareMemory; in OH_DDK_CreateAshmem()
75 if (g_shareMemoryMap.find(ashmem->ashmemFd) == g_shareMemoryMap.end()) { in AshmemValidityCheck()
80 if (g_shareMemoryMap[ashmem->ashmemFd] == nullptr) { in AshmemValidityCheck()
103 if (!g_shareMemoryMap[ashmem->ashmemFd]->MapAshmem(ashmemMapType)) { in OH_DDK_MapAshmem()
109 …reinterpret_cast<const uint8_t *>(g_shareMemoryMap[ashmem->ashmemFd]->ReadFromAshmem(ashmem->size,… in OH_DDK_MapAshmem()
122 g_shareMemoryMap[ashmem->ashmemFd]->UnmapAshmem(); in OH_DDK_UnmapAshmem()
136 g_shareMemoryMap.erase(ashmem->ashmemFd); in OH_DDK_DestroyAshmem()