Lines Matching refs:td
274 tdata_label_add(tdata_t *td, char *label, int idx)
279 le->le_idx = (idx == -1 ? td->td_nextid - 1 : idx);
281 slist_add(&td->td_labels, le, (int (*)())tdata_label_cmp);
296 tdata_label_top(tdata_t *td)
300 (void) list_iter(td->td_labels, tdata_label_top_cb, &top);
312 tdata_label_find(tdata_t *td, char *label)
318 ret = (labelent_t *)list_first(td->td_labels);
324 if (!(ret = (labelent_t *)list_find(td->td_labels, &let,
346 tdata_label_newmax(tdata_t *td, int newmax)
348 (void) list_iter(td->td_labels, tdata_label_newmax_cb, &newmax);
361 tdata_label_free(tdata_t *td)
363 list_free(td->td_labels, (void (*)())tdata_label_free_cb, NULL);
364 td->td_labels = NULL;
391 tdata_free(tdata_t *td)
393 hash_free(td->td_iihash, (void (*)())iidesc_free, NULL);
394 hash_free(td->td_layouthash, (void (*)())tdesc_free_cb, NULL);
395 hash_free(td->td_idhash, NULL, NULL);
396 list_free(td->td_fwdlist, NULL, NULL);
398 tdata_label_free(td);
400 free(td->td_parlabel);
401 free(td->td_parname);
403 pthread_mutex_destroy(&td->td_mergelock);
405 free(td);
412 tdata_t *td = private;
414 hash_add(td->td_idhash, ctdp);
415 hash_add(td->td_layouthash, ctdp);
438 tdata_build_hashes_common(tdata_t *td, hash_t *hash)
440 (void) iitraverse_hash(hash, &td->td_curvgen, NULL, NULL,
441 build_hashes_cbs, td);
445 tdata_build_hashes(tdata_t *td)
447 tdata_build_hashes_common(td, td->td_iihash);