Lines Matching defs:error

47  * of a LOCK_PRIO_INHERIT mutex with an unrecoverable error.
130 int error = 0;
153 error = EINVAL;
172 error = EINVAL;
174 error = EBUSY;
186 if (error == 0 && (type & LOCK_PRIO_PROTECT)) {
197 if (error == 0 &&
200 error = EINVAL;
202 return (error);
987 int error;
1008 if ((error = ___lwp_mutex_timedlock(mp, tsp, self)) != 0 &&
1009 error != EOWNERDEAD && error != ELOCKUNMAPPED) {
1043 DTRACE_PROBE2(plockstat, mutex__error, mp, error);
1046 return (error);
1059 int error;
1067 if ((error = ___lwp_mutex_trylock(mp, self)) != 0 &&
1068 error != EOWNERDEAD && error != ELOCKUNMAPPED) {
1094 } else if (error != EBUSY) {
1095 DTRACE_PROBE2(plockstat, mutex__error, mp, error);
1098 return (error);
1278 int error = EBUSY;
1298 error = ENOTRECOVERABLE;
1308 error = 0;
1336 error = 0;
1366 if (error && (new_lockword & (LOCKMASK | SPINNERMASK)) == 0) {
1384 error = 0;
1390 if (error == 0 && (mp->mutex_flag & LOCK_NOTRECOVERABLE)) {
1398 error = ENOTRECOVERABLE;
1403 if (error) {
1407 if (error != EBUSY) {
1408 DTRACE_PROBE2(plockstat, mutex__error, mp, error);
1417 error = EOWNERDEAD;
1421 return (error);
1469 int error = EBUSY;
1493 error = ENOTRECOVERABLE;
1507 error = 0;
1515 error = 0;
1544 error = 0;
1553 error = 0;
1561 if (error && (new_lockword & (LOCKMASK | SPINNERMASK)) == 0) {
1583 error = 0;
1590 error = 0;
1596 if (error == 0 && (mp->mutex_flag & LOCK_NOTRECOVERABLE)) {
1605 error = ENOTRECOVERABLE;
1610 if (error) {
1614 if (error != EBUSY) {
1615 DTRACE_PROBE2(plockstat, mutex__error, mp, error);
1625 error = EOWNERDEAD;
1627 error = ELOCKUNMAPPED;
1629 error = EOWNERDEAD;
1633 return (error);
1817 int error = 0;
1854 error = __lwp_park(tsp, 0);
1866 if (error) {
1868 if (error != EINTR)
1870 error = 0;
1882 if (error) {
1883 if (error != EINTR) {
1887 error = 0;
1894 ASSERT(error == 0 || error == EINVAL || error == ETIME);
1896 if (error == 0 && (mp->mutex_flag & LOCK_NOTRECOVERABLE)) {
1904 error = ENOTRECOVERABLE;
1912 if (error) {
1914 DTRACE_PROBE2(plockstat, mutex__error, mp, error);
1920 error = EOWNERDEAD;
1924 return (error);
2079 int error = 0;
2112 if ((error = _ceil_mylist_add(mp)) != 0) {
2113 DTRACE_PROBE2(plockstat, mutex__error, mp, error);
2114 return (error);
2127 error = mutex_trylock_kernel(mp);
2129 error = mutex_lock_kernel(mp, tsp, msp);
2135 switch (error) {
2150 error = EBUSY;
2160 error = ETIME;
2167 error = mutex_trylock_process(mp, try == MUTEX_LOCK);
2168 if (error == EBUSY && try == MUTEX_LOCK)
2169 error = mutex_lock_kernel(mp, tsp, msp);
2171 error = mutex_trylock_adaptive(mp, try == MUTEX_LOCK);
2172 if (error == EBUSY && try == MUTEX_LOCK)
2173 error = mutex_lock_queue(self, msp, mp, tsp);
2176 switch (error) {
2202 return (error);
2270 * no error detection, no lock statistics,
2311 * no error detection, and no lock statistics.
2352 int error;
2356 error = mutex_lock_impl((mutex_t *)mp, &tslocal);
2357 if (error == ETIME)
2358 error = ETIMEDOUT;
2359 return (error);
2367 int error;
2371 error = mutex_lock_impl((mutex_t *)mp, &tslocal);
2372 if (error == ETIME)
2373 error = ETIMEDOUT;
2374 return (error);
2391 * no error detection, no lock statistics,
2416 * no error detection, and no lock statistics.
2452 int error = 0;
2487 error = ___lwp_mutex_unlock(mp);
2504 return (error);
2521 * no error detection, no lock statistics,
2554 * no error detection, and no lock statistics.
2566 if (el) /* error detection or lock statistics */
2714 int error;
2717 if ((error = mutex_trylock(mp)) != 0)
2719 return (error);
2728 int error;
2732 error = __cond_wait(cv, mp);
2733 if (error == EINTR && curthread->ul_cursig) {
2739 return (error);
2748 int error;
2752 error = __cond_reltimedwait(cv, mp, ts);
2753 if (error == EINTR && curthread->ul_cursig) {
2759 return (error);
2778 int error;
2780 if ((error = mutex_trylock(mp)) == 0)
2782 return (error);
2918 int error = 0;
2922 error = EBUSY;
2930 return (error);
3172 int error;
3217 error = __lwp_park(tsp, lwpid);
3237 if (error) {
3243 if (error) {
3275 if (error && signalled)
3278 return (error);
3294 int error;
3317 error = cond_sleep_queue(cvp, mp, tsp);
3323 error = merror;
3331 return (error);
3343 int error;
3369 error = ___lwp_cond_wait(cvp, mp, tsp, 1);
3374 return (error);
3381 int error;
3393 error = cond_sleep_kernel(cvp, mp, tsp);
3403 error = merror;
3411 return (error);
3427 int error = 0;
3431 * Except in the case of [ETIMEDOUT], all these error checks
3434 * an error return, in effect, prior to modifying the state
3492 error = cond_wait_kernel(cvp, mp, tsp);
3494 error = cond_wait_queue(cvp, mp, tsp);
3503 if (error == ETIME)
3507 return (error);
3529 * no error detection, no lock statistics, and no event tracing.
3547 int error;
3550 error = __cond_wait(cvp, mp);
3551 if (error == EINTR)
3555 return (error);
3565 int error;
3567 error = cond_wait((cond_t *)cvp, (mutex_t *)mp);
3568 return ((error == EINTR)? 0 : error);
3579 int error;
3588 error = cond_wait_common(cvp, mp, &reltime);
3589 if (error == ETIME && clock_id == CLOCK_HIGHRES) {
3598 error = 0;
3600 return (error);
3606 int error;
3609 error = __cond_timedwait(cvp, mp, abstime);
3610 if (error == EINTR)
3614 return (error);
3625 int error;
3627 error = cond_timedwait((cond_t *)cvp, (mutex_t *)mp, abstime);
3628 if (error == ETIME)
3629 error = ETIMEDOUT;
3630 else if (error == EINTR)
3631 error = 0;
3632 return (error);
3653 int error;
3656 error = __cond_reltimedwait(cvp, mp, reltime);
3657 if (error == EINTR)
3661 return (error);
3669 int error;
3671 error = cond_reltimedwait((cond_t *)cvp, (mutex_t *)mp, reltime);
3672 if (error == ETIME)
3673 error = ETIMEDOUT;
3674 else if (error == EINTR)
3675 error = 0;
3676 return (error);
3687 int error = 0;
3701 error = _lwp_cond_signal(cvp);
3704 return (error);
3718 return (error);
3759 return (error);
3818 int error = 0;
3834 error = _lwp_cond_broadcast(cvp);
3837 return (error);
3903 return (error);