tg_buildstate_t
tg_buildstate_t *state = NULL, *new_state, *free = NULL;
mdb_zalloc(sizeof (tg_buildstate_t), UM_SLEEP);
mdb_free(state, sizeof (tg_buildstate_t));