Lines Matching refs:entry

116     unsigned long      key;                     /* the key for this entry    */
117 struct hash_entry *next; /* next entry in the bucket */
372 * such as only allocating the smallest necessary entry for each
690 * simple semi-LRU is used for this: whenever a client entry is accessed
693 * collecter then just removes the oldest entry (i.e. the one at the
718 * Get the client given its client number (the key). Returns the entry,
722 * to the entry returned by get_client() is NOT synchronized. This means
733 client_entry *entry, *prev = NULL;
739 entry = client_list->table[bucket];
743 while (entry && key != entry->key) {
744 prev = entry;
745 entry = entry->next;
748 if (entry && prev) { /* move entry to front of list */
749 prev->next = entry->next;
750 entry->next = client_list->table[bucket];
751 client_list->table[bucket] = entry;
756 if (entry) {
765 return entry;
770 * last entry in each bucket and updates the counters. Returns the
775 client_entry *entry, *prev;
781 entry = client_list->table[idx];
783 while (entry->next) { /* find last entry */
784 prev = entry;
785 entry = entry->next;
793 if (entry) { /* remove entry */
794 apr_rmm_free(client_rmm, apr_rmm_offset_get(client_rmm, entry));
809 * Add a new client to the list. Returns the entry if successful, NULL
816 client_entry *entry;
827 /* try to allocate a new entry */
829 entry = apr_rmm_addr_get(client_rmm, apr_rmm_malloc(client_rmm, sizeof(client_entry)));
830 if (!entry) {
838 entry = apr_rmm_addr_get(client_rmm, apr_rmm_malloc(client_rmm, sizeof(client_entry)));
839 if (!entry) {
847 /* now add the entry */
849 memcpy(entry, info, sizeof(client_entry));
850 entry->key = key;
851 entry->next = client_list->table[bucket];
852 client_list->table[bucket] = entry;
861 return entry;
1092 * Generate a new client entry, add it to the list, and return the
1093 * entry. Returns NULL if failed.
1098 client_entry new_entry = { 0, NULL, 0, "" }, *entry;
1108 if (!(entry = add_client(op, &new_entry, r->server))) {
1110 "failed to allocate client entry - ignoring client");
1114 return entry;