Lines Matching refs:aiost
36 * Each process owns an aiosp (service pool) with work threads (aiost).
130 static int aiost_create(struct aiosp *, struct aiost **);
131 static int aiost_terminate(struct aiost *);
134 static int aiosp_worker_extract(struct aiosp *, struct aiost **);
462 struct aiost *aiost = NULL;
475 error = aiosp_worker_extract(sp, &aiost);
482 fg->aiost = aiost;
484 aiost->fg = fg;
485 aiost->job = NULL;
487 aiost = fg->aiost;
490 error = aiosp_worker_extract(sp, &aiost);
495 aiost->fg = NULL;
496 aiost->job = job;
510 mutex_enter(&aiost->mtx);
511 aiost->freelist = false;
512 aiost->state = AIOST_STATE_OPERATION;
513 mutex_exit(&aiost->mtx);
514 cv_signal(&aiost->service_cv);
632 aiosp_worker_extract(struct aiosp *sp, struct aiost **aiost)
637 error = aiost_create(sp, aiost);
642 *aiost = TAILQ_LAST(&sp->freelist, aiost_list);
645 TAILQ_REMOVE(&sp->freelist, *aiost, list);
647 TAILQ_INSERT_TAIL(&sp->active, *aiost, list);
661 struct aiost *st;
717 aiost_create(struct aiosp *sp, struct aiost **ret)
720 struct aiost *st;
799 struct aiost *st = arg;
829 panic("aio_process: invalid aiost state {%x}\n",
1110 aiost_terminate(struct aiost *st)
1135 struct aiost *st;
2174 struct aiost *st;