Lines Matching defs:flag

660 upimutex_unlock(struct upimutex *upimutex, uint16_t flag)
671 if (ts != NULL && !(flag & LOCK_NOTRECOVERABLE)) {
710 uint16_t flag;
743 fuword16_noerr(&lp->mutex_flag, &flag);
746 upimutex_unlock((upimutex_t *)upimutex, flag);
750 if (flag & LOCK_NOTRECOVERABLE) {
754 * in lwp_upimutex_unlock(), this flag needs to
759 upimutex_unlock((upimutex_t *)upimutex, flag);
762 } else if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
763 if (flag & LOCK_OWNERDEAD)
890 * as it should. If it is readable, the state of the flag
893 * If the upimutex is locked here, the flag's LOCK_OWNERDEAD
897 * event. The flag's setting can be used to distinguish
900 fuword16_noerr(&lp->mutex_flag, &flag);
904 * held, the flag could not be set to LOCK_NOTRECOVERABLE,
910 upimutex_unlock((upimutex_t *)upimutex, flag);
913 } else if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
914 if (flag & LOCK_OWNERDEAD)
926 * of the mutex flag can be used to distinguish between the
929 if (flag & LOCK_NOTRECOVERABLE) {
933 * Here, the flag could be set to LOCK_OWNERDEAD or
938 * The user flag could be LOCK_OWNERDEAD if, at the
941 * the mutex flag accordingly, and handed off the lock
943 * happened to read the flag while Tnew has yet to deal
950 * unlock the lock will result in the mutex flag being
956 * Of course, if the user-flag is not set with
976 uint16_t flag;
1007 fuword16_noerr(&lp->mutex_flag, &flag);
1008 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
1012 flag &= ~(LOCK_OWNERDEAD | LOCK_UNMAPPED);
1013 flag |= LOCK_NOTRECOVERABLE;
1014 suword16_noerr(&lp->mutex_flag, flag);
1017 upimutex_unlock((upimutex_t *)upimutex, flag);
1056 uint16_t flag;
1058 fuword16_noerr(&lp->mutex_flag, &flag);
1059 if ((flag &
1061 flag |= lockflg;
1062 suword16_noerr(&lp->mutex_flag, flag);
1067 return (flag);
1112 * LOCK_NOTRECOVERABLE flag, so that all waiters are
1161 uint16_t flag;
1221 fuword16_noerr(&lp->mutex_flag, &flag);
1222 if (flag & LOCK_NOTRECOVERABLE) {
1322 fuword16_noerr(&lp->mutex_flag, &flag);
1323 if (flag & LOCK_NOTRECOVERABLE) {
1336 fuword16_noerr(&lp->mutex_flag, &flag);
1337 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
1338 if (flag & LOCK_OWNERDEAD)
1553 * a flag telling the kernel whether or not to honor the kernel/user
2862 uint16_t flag;
2902 flag = lwp_clear_mutex(lp, lockflg);
2904 upimutex_unlock((upimutex_t *)upimutex, flag);
2926 fuword16_noerr(&lp->mutex_flag, &flag);
2927 if (flag & LOCK_NOTRECOVERABLE) {
3024 uint16_t flag;
3063 fuword16_noerr(&lp->mutex_flag, &flag);
3064 if (flag & LOCK_NOTRECOVERABLE) {
3078 fuword16_noerr(&lp->mutex_flag, &flag);
3079 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
3080 if (flag & LOCK_OWNERDEAD)
3118 uint16_t flag;
3157 fuword16_noerr(&lp->mutex_flag, &flag);
3158 if (flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED)) {
3159 flag &= ~(LOCK_OWNERDEAD | LOCK_UNMAPPED);
3160 flag |= LOCK_NOTRECOVERABLE;
3161 suword16_noerr(&lp->mutex_flag, flag);
3188 (flag & LOCK_NOTRECOVERABLE)) {