Lines Matching refs:ranges
41 pMap->ranges = malloc(sizeof(MappedRange)); in sysMapFD()
42 if (pMap->ranges == NULL) { in sysMapFD()
47 pMap->ranges[0].addr = memPtr; in sysMapFD()
48 pMap->ranges[0].length = sb.st_size; in sysMapFD()
87 pMap->ranges = calloc(range_count, sizeof(MappedRange)); in sysMapBlockFile()
88 if (pMap->ranges == NULL) { in sysMapBlockFile()
98 free(pMap->ranges); in sysMapBlockFile()
106 free(pMap->ranges); in sysMapBlockFile()
133 pMap->ranges[i].addr = addr; in sysMapBlockFile()
134 pMap->ranges[i].length = length; in sysMapBlockFile()
146 free(pMap->ranges); in sysMapBlockFile()
204 if (munmap(pMap->ranges[i].addr, pMap->ranges[i].length) < 0) { in sysReleaseMap()
206 pMap->ranges[i].addr, (int)pMap->ranges[i].length, strerror(errno)); in sysReleaseMap()
209 free(pMap->ranges); in sysReleaseMap()
210 pMap->ranges = NULL; in sysReleaseMap()