Home
last modified time | relevance | path

Searched refs:head (Results 1 – 14 of 14) sorted by relevance

/memcached-1.6.32/
Dqueue.h137 (head)->trace.prevline = (head)->trace.lastline; \
138 (head)->trace.prevfile = (head)->trace.lastfile; \
228 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
230 #define SLIST_FIRST(head) ((head)->slh_first) argument
349 #define STAILQ_FIRST(head) ((head)->stqh_first) argument
373 (head)->stqh_last = &STAILQ_FIRST((head)); \
424 (head)->stqh_last = &STAILQ_FIRST((head)); \
531 #define LIST_EMPTY(head) ((head)->lh_first == NULL) argument
533 #define LIST_FIRST(head) ((head)->lh_first) argument
717 #define TAILQ_FIRST(head) ((head)->tqh_first) argument
[all …]
Dcache.c29 STAILQ_INIT(&ret->head); in cache_create()
57 while (!STAILQ_EMPTY(&cache->head)) { in cache_destroy()
58 struct cache_free_s *o = STAILQ_FIRST(&cache->head); in cache_destroy()
59 STAILQ_REMOVE_HEAD(&cache->head, c_next); in cache_destroy()
79 ret = STAILQ_FIRST(&cache->head); in do_cache_alloc()
80 STAILQ_REMOVE_HEAD(&cache->head, c_next); in do_cache_alloc()
136 STAILQ_INSERT_HEAD(&cache->head, (struct cache_free_s *)ptr, c_next); in do_cache_free()
Ditems.c242 nch->head = ch->head; in do_item_alloc_chunk()
390 item **head, **tail; in do_item_link_fixup() local
397 if (it->prev == 0 && *head == 0) *head = it; in do_item_link_fixup()
414 item **head, **tail; in do_item_link_q() local
419 assert(it != *head); in do_item_link_q()
420 assert((*head && *tail) || (*head == 0 && *tail == 0)); in do_item_link_q()
422 it->next = *head; in do_item_link_q()
424 *head = it; in do_item_link_q()
458 if (*head == it) { in do_item_unlink_q()
1760 assert((*head && *tail) || (*head == 0 && *tail == 0)); in do_item_linktail_q()
[all …]
Drestart.c420 if (ch->head) { in restart_fixup()
421 ch->head = (item *)((mc_ptr_t)ch->head - (mc_ptr_t)orig_addr); in restart_fixup()
422 ch->head = (item *)((mc_ptr_t)ch->head + (mc_ptr_t)mmap_base); in restart_fixup()
Dthread.c60 STAILQ_HEAD(conn_ev_head, conn_queue_item) head;
275 STAILQ_INIT(&cq->head); in cq_init()
292 item = STAILQ_FIRST(&cq->head); in cq_pop()
294 STAILQ_REMOVE_HEAD(&cq->head, i_next); in cq_pop()
306 STAILQ_INSERT_TAIL(&cq->head, item, i_next); in cq_push()
549 iop_head_t head; in thread_libevent_ionotify() local
551 STAILQ_INIT(&head); in thread_libevent_ionotify()
573 STAILQ_CONCAT(&head, &me->ion_head); in thread_libevent_ionotify()
576 while (!STAILQ_EMPTY(&head)) { in thread_libevent_ionotify()
577 io_pending_t *io = STAILQ_FIRST(&head); in thread_libevent_ionotify()
[all …]
Dproxy_network.c143 io_head_t head; in _proxy_event_handler_dequeue() local
145 STAILQ_INIT(&head); in _proxy_event_handler_dequeue()
150 STAILQ_CONCAT(&head, &t->io_head_in); in _proxy_event_handler_dequeue()
153 while (!STAILQ_EMPTY(&head)) { in _proxy_event_handler_dequeue()
158 STAILQ_REMOVE_HEAD(&head, io_next); in _proxy_event_handler_dequeue()
267 beconn_head_t head; in proxy_event_beconn() local
269 STAILQ_INIT(&head); in proxy_event_beconn()
271 STAILQ_CONCAT(&head, &t->beconn_head_in); in proxy_event_beconn()
283 while (!STAILQ_EMPTY(&head)) { in proxy_event_beconn()
284 be = STAILQ_FIRST(&head); in proxy_event_beconn()
[all …]
Dcache.h28 STAILQ_HEAD(cache_head, cache_free_s) head;
Dproxy_config.c90 globalobj_head_t head; in _proxy_manager_thread() local
94 STAILQ_INIT(&head); in _proxy_manager_thread()
100 STAILQ_CONCAT(&head, &ctx->manager_head); in _proxy_manager_thread()
107 STAILQ_FOREACH(g, &head, next) { in _proxy_manager_thread()
Dproto_proxy.c486 io_head_t head; in proxy_submit_cb() local
488 STAILQ_INIT(&head); in proxy_submit_cb()
525 STAILQ_INSERT_HEAD(&head, p, io_next); in proxy_submit_cb()
543 if (!STAILQ_EMPTY(&head)) { in proxy_submit_cb()
551 STAILQ_CONCAT(&e->io_head_in, &head); in proxy_submit_cb()
Dslabs.c884 it = ch->head; in slab_rebalance_move()
1013 fch->head = new_it; in slab_rebalance_move()
Dmemcached.c1114 mc_resp_bundle **head = &th->open_bundle; in resp_free() local
1115 if (*head == b) *head = b->next; in resp_free()
1129 mc_resp_bundle **head = &th->open_bundle; in resp_free() local
1136 b->next = *head; in resp_free()
1138 *head = b; in resp_free()
Dproxy.h606 void proxy_run_backend_queue(be_head_t *head);
Dmemcached.h641 struct _stritem *head; /* always points to the owner chunk */ member
/memcached-1.6.32/doc/
Dprotocol.txt613 It is possible to access an item without causing it to be "bumped" to the head
1078 toward the head of requested slab classes, actively freeing memory for expired
1121 head. The crawler cannot be stopped or restarted until it completes the