Home
last modified time | relevance | path

Searched refs:dtpq_items (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_pq.c40 p->dtpq_items = dt_zalloc(dtp, size * sizeof (p->dtpq_items[0])); in dt_pq_init()
41 if (p->dtpq_items == NULL) { in dt_pq_init()
60 dt_free(dtp, p->dtpq_items); in dt_pq_fini()
67 void *item = p->dtpq_items[index]; in dt_pq_getvalue()
79 p->dtpq_items[i] = item; in dt_pq_insert()
82 void *tmp = p->dtpq_items[i]; in dt_pq_insert()
83 p->dtpq_items[i] = p->dtpq_items[i / 2]; in dt_pq_insert()
84 p->dtpq_items[i / 2] = tmp; in dt_pq_insert()
100 return (p->dtpq_items[*cookie]); in dt_pq_walk()
114 ret = p->dtpq_items[1]; in dt_pq_pop()
[all …]
H A Ddt_pq.h33 void **dtpq_items; /* array of elements */ member