• Home
  • Raw
  • Download

Lines Matching refs:Entry

927 typedef struct Entry {  struct
929 struct Entry* hlink; /* next in collision chain */ argument
930 struct Entry* mru_prev; argument
931 struct Entry* mru_next; argument
939 } Entry; argument
1034 static void entry_free(Entry* e) { in entry_free()
1041 static void entry_mru_remove(Entry* e) { in entry_mru_remove()
1046 static void entry_mru_add(Entry* e, Entry* list) { in entry_mru_add()
1047 Entry* first = list->mru_next; in entry_mru_add()
1058 static unsigned entry_hash(const Entry* e) { in entry_hash()
1067 static int entry_init_key(Entry* e, const void* query, int querylen) { in entry_init_key()
1082 static Entry* entry_alloc(const Entry* init, const void* answer, int answerlen) { in entry_alloc()
1083 Entry* e; in entry_alloc()
1087 e = (Entry*) calloc(size, 1); in entry_alloc()
1104 static int entry_equals(const Entry* e1, const Entry* e2) { in entry_equals()
1127 Entry mru_list;
1129 Entry* entries;
1186 static bool cache_has_pending_request_locked(resolv_cache* cache, const Entry* key, in cache_has_pending_request_locked()
1211 static void _cache_notify_waiting_tid_locked(struct resolv_cache* cache, const Entry* key) { in _cache_notify_waiting_tid_locked()
1234 Entry key[1]; in _resolv_cache_query_failed()
1252 Entry** pnode = (Entry**) &cache->entries[nn]; in cache_flush_locked()
1255 Entry* node = *pnode; in cache_flush_locked()
1277 cache->entries = (Entry*) calloc(sizeof(*cache->entries), cache->max_entries); in resolv_cache_create()
1302 Entry* e; in cache_dump_mru()
1325 static Entry** _cache_lookup_p(Cache* cache, Entry* key) { in _cache_lookup_p()
1327 Entry** pnode = (Entry**) &cache->entries[index]; in _cache_lookup_p()
1330 Entry* node = *pnode; in _cache_lookup_p()
1346 static void _cache_add_p(Cache* cache, Entry** lookup, Entry* e) { in _cache_add_p()
1359 static void _cache_remove_p(Cache* cache, Entry** lookup) { in _cache_remove_p()
1360 Entry* e = *lookup; in _cache_remove_p()
1374 Entry* oldest = cache->mru_list.mru_prev; in _cache_remove_oldest()
1375 Entry** lookup = _cache_lookup_p(cache, oldest); in _cache_remove_oldest()
1389 Entry* e; in _cache_remove_expired()
1395 Entry** lookup = _cache_lookup_p(cache, e); in _cache_remove_expired()
1421 Entry key; in _resolv_cache_lookup()
1422 Entry** lookup; in _resolv_cache_lookup()
1423 Entry* e; in _resolv_cache_lookup()
1518 Entry key[1]; in _resolv_cache_add()
1519 Entry* e; in _resolv_cache_add()
1520 Entry** lookup; in _resolv_cache_add()