Lines Matching refs:Cache
948 struct Cache { struct
949 Cache() { in Cache() function
953 ~Cache() { flush(); } in ~Cache() argument
1003 cache = std::make_unique<Cache>(); in NetConfig() argument
1025 std::unique_ptr<Cache> cache;
1049 static Cache* find_named_cache_locked(unsigned netid) REQUIRES(cache_mutex);
1054 static bool cache_has_pending_request_locked(Cache* cache, const Entry* key, in cache_has_pending_request_locked()
1058 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_has_pending_request_locked()
1059 Cache::pending_req_info* prev = &cache->pending_requests; in cache_has_pending_request_locked()
1069 ri = (Cache::pending_req_info*)calloc(1, sizeof(Cache::pending_req_info)); in cache_has_pending_request_locked()
1079 static void cache_notify_waiting_tid_locked(struct Cache* cache, const Entry* key) { in cache_notify_waiting_tid_locked()
1082 Cache::pending_req_info* ri = cache->pending_requests.next; in cache_notify_waiting_tid_locked()
1083 Cache::pending_req_info* prev = &cache->pending_requests; in cache_notify_waiting_tid_locked()
1108 Cache* cache = find_named_cache_locked(netid); in _resolv_cache_query_failed()
1115 static void cache_dump_mru_locked(Cache* cache) { in cache_dump_mru_locked()
1140 static Entry** _cache_lookup_p(Cache* cache, Entry* key) { in _cache_lookup_p()
1161 static void _cache_add_p(Cache* cache, Entry** lookup, Entry* e) { in _cache_add_p()
1174 static void _cache_remove_p(Cache* cache, Entry** lookup) { in _cache_remove_p()
1188 static void _cache_remove_oldest(Cache* cache) { in _cache_remove_oldest()
1203 static void _cache_remove_expired(Cache* cache) { in _cache_remove_expired()
1252 Cache* cache = find_named_cache_locked(netid); in resolv_cache_lookup()
1332 Cache* cache = NULL; in resolv_cache_add()
1401 Cache* cache = nullptr; in resolv_gethostbyaddr_from_cache()
1528 static Cache* find_named_cache_locked(unsigned netid) { in find_named_cache_locked()
1892 Cache* cache; in resolv_cache_get_expiration()