Lines Matching refs:pMap
269 char* pMap = (char*)mmap(0, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, g_fd, 0);
272 memtrace(pMap, PAGE_SIZE, tag, true);
274 if (pMap == MAP_FAILED) {
278 return pMap;
282 void RemoveMmap(char* pMap)
284 munmap(pMap, PAGE_SIZE);
288 void MmapWriteFile(char* pMap, int length, char* data)
290 if (memcpy_s(pMap, length, data, length) != EOK) {
294 msync(pMap, length, MS_SYNC);
298 char* MmapReadFile(char* pMap, int length)
306 if (memcpy_s(data, length+1, pMap, length) != EOK) {
369 char* pMap = CreateMmap();
374 MmapWriteFile(pMap, strlen(data), data);
376 RemoveMmap(pMap);
383 char* pMap = CreateMmap();
386 char* outTestchar = MmapReadFile(pMap, length);
389 RemoveMmap(pMap);