Lines Matching refs:Cache
932 struct Cache { struct
933 Cache() { in Cache() argument
937 ~Cache() { flush(); } in ~Cache() argument
987 cache = std::make_unique<Cache>(); in NetConfig() argument
993 std::unique_ptr<Cache> cache;
1013 static Cache* find_named_cache_locked(unsigned netid) REQUIRES(cache_mutex);
1018 static bool cache_has_pending_request_locked(Cache* cache, const Entry* key, in cache_has_pending_request_locked()
1022 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_has_pending_request_locked()
1023 Cache::pending_req_info* prev = &cache->pending_requests; in cache_has_pending_request_locked()
1033 ri = (Cache::pending_req_info*)calloc(1, sizeof(Cache::pending_req_info)); in cache_has_pending_request_locked()
1043 static void cache_notify_waiting_tid_locked(struct Cache* cache, const Entry* key) { in cache_notify_waiting_tid_locked()
1046 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_notify_waiting_tid_locked()
1047 Cache::pending_req_info* prev = &cache->pending_requests; in cache_notify_waiting_tid_locked()
1072 Cache* cache = find_named_cache_locked(netid); in _resolv_cache_query_failed()
1079 static void cache_dump_mru_locked(Cache* cache) { in cache_dump_mru_locked()
1104 static Entry** _cache_lookup_p(Cache* cache, Entry* key) { in _cache_lookup_p()
1125 static void _cache_add_p(Cache* cache, Entry** lookup, Entry* e) { in _cache_add_p()
1138 static void _cache_remove_p(Cache* cache, Entry** lookup) { in _cache_remove_p()
1152 static void _cache_remove_oldest(Cache* cache) { in _cache_remove_oldest()
1167 static void _cache_remove_expired(Cache* cache) { in _cache_remove_expired()
1216 Cache* cache = find_named_cache_locked(netid); in resolv_cache_lookup()
1296 Cache* cache = NULL; in resolv_cache_add()
1365 Cache* cache = nullptr; in resolv_gethostbyaddr_from_cache()
1492 static Cache* find_named_cache_locked(unsigned netid) { in find_named_cache_locked()
1860 Cache* cache; in resolv_cache_get_expiration()