• Home
  • Raw
  • Download

Lines Matching refs:mmap_cache

49 		       tcp->mmap_cache ? tcp->mmap_cache->generation : 0,  in mmap_cache_invalidate()
51 tcp->mmap_cache ? tcp->mmap_cache->entry : 0); in mmap_cache_invalidate()
70 tcp->mmap_cache ? tcp->mmap_cache->generation : 0, in delete_mmap_cache()
72 tcp->mmap_cache ? tcp->mmap_cache->entry : 0, caller); in delete_mmap_cache()
74 if (!tcp->mmap_cache) in delete_mmap_cache()
77 while (tcp->mmap_cache->size) { in delete_mmap_cache()
78 unsigned int i = --tcp->mmap_cache->size; in delete_mmap_cache()
79 free(tcp->mmap_cache->entry[i].binary_filename); in delete_mmap_cache()
80 tcp->mmap_cache->entry[i].binary_filename = NULL; in delete_mmap_cache()
83 free(tcp->mmap_cache->entry); in delete_mmap_cache()
84 tcp->mmap_cache->entry = NULL; in delete_mmap_cache()
86 free(tcp->mmap_cache); in delete_mmap_cache()
87 tcp->mmap_cache = NULL; in delete_mmap_cache()
99 if (tcp->mmap_cache in mmap_cache_rebuild_if_invalid()
100 && tcp->mmap_cache->generation != mmap_cache_generation) in mmap_cache_rebuild_if_invalid()
103 if (tcp->mmap_cache) in mmap_cache_rebuild_if_invalid()
205 tcp->mmap_cache = xmalloc(sizeof(*tcp->mmap_cache)); in mmap_cache_rebuild_if_invalid()
206 memcpy(tcp->mmap_cache, &cache, sizeof(cache)); in mmap_cache_rebuild_if_invalid()
209 tcp->mmap_cache->generation, mmap_cache_generation, in mmap_cache_rebuild_if_invalid()
210 tcp, tcp->mmap_cache->entry, caller); in mmap_cache_rebuild_if_invalid()
218 if (!tcp->mmap_cache) in mmap_cache_search()
222 int upper = (int) tcp->mmap_cache->size - 1; in mmap_cache_search()
226 struct mmap_cache_entry_t *entry = &tcp->mmap_cache->entry[mid]; in mmap_cache_search()
242 for (unsigned int i = 0; i < tcp->mmap_cache->size; i++) { in mmap_cache_search_custom()
243 if (fn(tcp->mmap_cache->entry + i, data)) in mmap_cache_search_custom()
244 return tcp->mmap_cache->entry + i; in mmap_cache_search_custom()