Lines Matching defs:flag
661 upimutex_unlock(struct upimutex *upimutex, uint16_t flag)
672 if (ts != NULL && !(flag & LOCK_NOTRECOVERABLE)) {
711 uint16_t flag;
744 fuword16_noerr(&lp->mutex_flag, &flag);
747 upimutex_unlock((upimutex_t *)upimutex, flag);
751 if (flag & LOCK_NOTRECOVERABLE) {
755 * in lwp_upimutex_unlock(), this flag needs to
760 upimutex_unlock((upimutex_t *)upimutex, flag);
763 } else if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
764 if (flag & LOCK_OWNERDEAD)
891 * as it should. If it is readable, the state of the flag
894 * If the upimutex is locked here, the flag's LOCK_OWNERDEAD
898 * event. The flag's setting can be used to distinguish
901 fuword16_noerr(&lp->mutex_flag, &flag);
905 * held, the flag could not be set to LOCK_NOTRECOVERABLE,
911 upimutex_unlock((upimutex_t *)upimutex, flag);
914 } else if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
915 if (flag & LOCK_OWNERDEAD)
927 * of the mutex flag can be used to distinguish between the
930 if (flag & LOCK_NOTRECOVERABLE) {
934 * Here, the flag could be set to LOCK_OWNERDEAD or
939 * The user flag could be LOCK_OWNERDEAD if, at the
942 * the mutex flag accordingly, and handed off the lock
944 * happened to read the flag while Tnew has yet to deal
951 * unlock the lock will result in the mutex flag being
957 * Of course, if the user-flag is not set with
977 uint16_t flag;
1008 fuword16_noerr(&lp->mutex_flag, &flag);
1009 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
1013 flag &= ~(LOCK_OWNERDEAD | LOCK_UNMAPPED);
1014 flag |= LOCK_NOTRECOVERABLE;
1015 suword16_noerr(&lp->mutex_flag, flag);
1018 upimutex_unlock((upimutex_t *)upimutex, flag);
1060 uint16_t flag;
1062 fuword16_noerr(&lp->mutex_flag, &flag);
1063 if ((flag &
1065 flag |= lockflg;
1066 suword16_noerr(&lp->mutex_flag, flag);
1071 return (flag);
1116 * LOCK_NOTRECOVERABLE flag, so that all waiters are
1165 uint16_t flag;
1237 fuword16_noerr(&lp->mutex_flag, &flag);
1238 if (flag & LOCK_NOTRECOVERABLE) {
1338 fuword16_noerr(&lp->mutex_flag, &flag);
1339 if (flag & LOCK_NOTRECOVERABLE) {
1352 fuword16_noerr(&lp->mutex_flag, &flag);
1353 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
1354 if (flag & LOCK_OWNERDEAD)
1569 * a flag telling the kernel whether or not to honor the kernel/user
2878 uint16_t flag;
2918 flag = lwp_clear_mutex(lp, lockflg);
2920 upimutex_unlock((upimutex_t *)upimutex, flag);
2942 fuword16_noerr(&lp->mutex_flag, &flag);
2943 if (flag & LOCK_NOTRECOVERABLE) {
3040 uint16_t flag;
3092 fuword16_noerr(&lp->mutex_flag, &flag);
3093 if (flag & LOCK_NOTRECOVERABLE) {
3107 fuword16_noerr(&lp->mutex_flag, &flag);
3108 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
3109 if (flag & LOCK_OWNERDEAD)
3147 uint16_t flag;
3186 fuword16_noerr(&lp->mutex_flag, &flag);
3187 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
3188 flag &= ~(LOCK_OWNERDEAD | LOCK_UNMAPPED);
3189 flag |= LOCK_NOTRECOVERABLE;
3190 suword16_noerr(&lp->mutex_flag, flag);
3217 (flag & LOCK_NOTRECOVERABLE)) {