Searched refs:index_mmap (Results 1 - 3 of 3) sorted by relevance

/xsrc/external/mit/MesaLib/dist/src/util/
H A Ddisk_cache_os.h60 uint8_t *index_mmap; member in struct:disk_cache
63 /* Pointer to total size of all objects in cache (within index_mmap) */
66 /* Pointer to stored keys, (within index_mmap). */
H A Ddisk_cache_os.c951 cache->index_mmap = mmap(NULL, size, PROT_READ | PROT_WRITE,
953 if (cache->index_mmap == MAP_FAILED)
957 cache->size = (uint64_t *) cache->index_mmap;
958 cache->stored_keys = cache->index_mmap + sizeof(uint64_t);
971 munmap(cache->index_mmap, cache->index_mmap_size);
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Ddisk_cache.c89 uint8_t *index_mmap; member in struct:disk_cache
92 /* Pointer to total size of all objects in cache (within index_mmap) */
95 /* Pointer to stored keys, (within index_mmap). */
335 cache->index_mmap = mmap(NULL, size, PROT_READ | PROT_WRITE,
337 if (cache->index_mmap == MAP_FAILED)
341 cache->size = (uint64_t *) cache->index_mmap;
342 cache->stored_keys = cache->index_mmap + sizeof(uint64_t);
447 munmap(cache->index_mmap, cache->index_mmap_size);

Completed in 5 milliseconds