Home | History | Annotate | Download | only in minzip

Lines Matching full:pmap

83 int sysLoadFileInShmem(int fd, MemMapping* pMap)
89 assert(pMap != NULL);
101 sysReleaseShmem(pMap);
105 pMap->baseAddr = pMap->addr = memPtr;
106 pMap->baseLength = pMap->length = length;
115 * On success, returns 0 and fills out "pMap". On failure, returns a nonzero
116 * value and does not disturb "pMap".
118 int sysMapFileInShmem(int fd, MemMapping* pMap)
124 assert(pMap != NULL);
136 pMap->baseAddr = pMap->addr = memPtr;
137 pMap->baseLength = pMap->length = length;
146 * On success, returns 0 and fills out "pMap". On failure, returns a nonzero
147 * value and does not disturb "pMap".
150 MemMapping* pMap)
158 assert(pMap != NULL);
182 pMap->baseAddr = memPtr;
183 pMap->baseLength = actualLength;
184 pMap->addr = (char*)memPtr + adjust;
185 pMap->length = length;
189 pMap->baseAddr, (int) pMap->baseLength,
190 pMap->addr, (int) pMap->length);
198 void sysReleaseShmem(MemMapping* pMap)
200 if (pMap->baseAddr == NULL && pMap->baseLength == 0)
203 if (munmap(pMap->baseAddr, pMap->baseLength) < 0) {
205 pMap->baseAddr, (int)pMap->baseLength, strerror(errno));
207 LOGV("munmap(%p, %d) succeeded\n", pMap->baseAddr, pMap->baseLength);
208 pMap->baseAddr = NULL;
209 pMap->baseLength = 0;