Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/mergeq/
H A Dworkq.c40 size_t wq_cap; /* Queue capacity */ member
70 if (wqp->wq_cap > 0) in workq_fini()
71 workq_free(wqp->wq_items, sizeof (void *) * wqp->wq_cap); in workq_fini()
129 wqp->wq_cap = WORKQ_DEFAULT_CAP; in workq_init()
139 if (wqp->wq_cap > 0) in workq_reset()
140 bzero(wqp->wq_items, sizeof (void *) * wqp->wq_cap); in workq_reset()
158 if (SIZE_MAX - wqp->wq_cap < WORKQ_DEFAULT_CAP) in workq_grow()
161 ncap = wqp->wq_cap + WORKQ_DEFAULT_CAP; in workq_grow()
167 bcopy(wqp->wq_items, items, wqp->wq_cap * sizeof (void *)); in workq_grow()
168 workq_free(wqp->wq_items, sizeof (void *) * wqp->wq_cap); in workq_grow()
[all …]