Home
last modified time | relevance | path

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

/commonlibrary/memory_utils/libpurgeablemem/c/src/
Dpurgeable_mem_c.c34 void *dataPtr; member
46 (unsigned long)obj, (unsigned long)(obj->dataPtr), obj->dataSizeInput, in LogPurgMemInfo()
73 pugObj->dataPtr = mmap(NULL, size, PROT_READ | PROT_WRITE, type, -1, 0); in PurgMemCreate_()
74 if (pugObj->dataPtr == MAP_FAILED) { in PurgMemCreate_()
76 pugObj->dataPtr = NULL; in PurgMemCreate_()
85 …PMState err = InitUxPageTable(pugObj->uxPageTable, (uint64_t)(pugObj->dataPtr), size); /* dataPtr … in PurgMemCreate_()
110 munmap(pugObj->dataPtr, size); in PurgMemCreate_()
111 pugObj->dataPtr = NULL; in PurgMemCreate_()
167 if (purgObj->dataPtr) { in PurgMemDestroy()
169 if (munmap(purgObj->dataPtr, size) != 0) { in PurgMemDestroy()
[all …]
/commonlibrary/memory_utils/libpurgeablemem/common/src/
Dux_page_table_c.c134 void *dataPtr = mmap(NULL, dataSize, prot, type, -1, 0); in CheckUxpt() local
135 if (dataPtr == MAP_FAILED) { in CheckUxpt()
142 size_t uptSize = GetUxPageSize_((uint64_t)dataPtr, dataSize); in CheckUxpt()
143 void *ptes = mmap(NULL, uptSize, prot, type, -1, UxptePageNo_((uint64_t)dataPtr) * PAGE_SIZE); in CheckUxpt()
156 if (munmap(dataPtr, dataSize) != 0) { in CheckUxpt()
159 dataPtr = NULL; in CheckUxpt()
/commonlibrary/memory_utils/libpurgeablemem/test/
Dpurgeableashmem_test.cpp170 void *dataPtr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); variable
171 if (dataPtr == MAP_FAILED) {
172 dataPtr = nullptr;
176 char *str = static_cast<char *>(dataPtr);