Lines Matching defs:head
1340 aio_lio_t *head;
1407 head = reqp->req_head;
1435 if (head != NULL) {
1440 sig_mutex_lock(&head->lio_mutex);
1441 ASSERT(head->lio_refcnt == head->lio_nent);
1442 if (head->lio_refcnt == 1) {
1444 if (head->lio_mode == LIO_WAIT) {
1445 if ((waiting = head->lio_waiting) != 0)
1446 (void) cond_signal(&head->lio_cond_cv);
1447 } else if (head->lio_port < 0) { /* none or signal */
1448 if ((np.np_lio_signo = head->lio_signo) != 0)
1450 np.np_lio_user = head->lio_sigval.sival_ptr;
1453 np.np_lio_port = head->lio_port;
1454 np.np_lio_event = head->lio_event;
1456 (uintptr_t)head->lio_sigevent;
1457 np.np_lio_user = head->lio_sigval.sival_ptr;
1459 head->lio_nent = head->lio_refcnt = 0;
1460 sig_mutex_unlock(&head->lio_mutex);
1462 _aio_lio_free(head);
1464 head->lio_nent--;
1465 head->lio_refcnt--;
1466 sig_mutex_unlock(&head->lio_mutex);
1503 * Delete fsync requests from list head until there is
1510 aio_lio_t *head = reqp->req_head;
1515 sig_mutex_lock(&head->lio_mutex);
1516 if (head->lio_refcnt > 1) {
1517 head->lio_refcnt--;
1518 head->lio_nent--;
1520 sig_mutex_unlock(&head->lio_mutex);
1529 ASSERT(head->lio_nent == 1 && head->lio_refcnt == 1);
1531 if (head->lio_canned)
1533 if (head->lio_mode == LIO_DESTROY) {
1537 sig_mutex_unlock(&head->lio_mutex);
1539 head->lio_refcnt--;
1540 head->lio_nent--;
1541 _aio_lio_free(head);
2171 * If an LIO request, add the list head to the aio request
2292 * If an LIO request, add the list head to the aio request