Lines Matching defs:aiowp
96 aio_worker_t *aiowp;
103 if ((aiowp = worker_freelist) == NULL) {
113 for (i = 0, aiowp = worker_freelist; i < nelem; i++, aiowp++)
114 aiowp->work_forw = aiowp + 1;
115 worker_freelast = aiowp - 1;
117 aiowp = worker_freelist;
119 if ((worker_freelist = aiowp->work_forw) == NULL)
123 aiowp->work_forw = NULL;
124 (void) mutex_init(&aiowp->work_qlock1, USYNC_THREAD, NULL);
125 (void) cond_init(&aiowp->work_idle_cv, USYNC_THREAD, NULL);
127 return (aiowp);
137 aio_worker_t *aiowp = arg;
139 (void) mutex_destroy(&aiowp->work_qlock1);
140 (void) cond_destroy(&aiowp->work_idle_cv);
141 (void) memset(aiowp, 0, sizeof (*aiowp));
145 worker_freelist = worker_freelast = aiowp;
147 worker_freelast->work_forw = aiowp;
148 worker_freelast = aiowp;