Lines Matching refs:gc
526 struct global_confirm *gc;
528 if ((gc = TAILQ_FIRST(&global_confirms)) == NULL)
530 if (gc->cb != NULL)
531 gc->cb(type, seq, gc->ctx);
532 if (--gc->ref_count <= 0) {
533 TAILQ_REMOVE(&global_confirms, gc, entry);
534 bzero(gc, sizeof(*gc));
535 xfree(gc);
819 struct global_confirm *gc, *last_gc;
830 gc = xmalloc(sizeof(*gc));
831 gc->cb = cb;
832 gc->ctx = ctx;
833 gc->ref_count = 1;
834 TAILQ_INSERT_TAIL(&global_confirms, gc, entry);