Lines Matching refs:result
224 * Setting it to a result code is a RELEASE, this is ensured by both a
227 * The AQUIRE when reading the result code without holding sem_lock() is
230 * Reading the result code while holding sem_lock() needs no further barriers,
645 int result, sem_op, nsops;
660 result = curr->semval;
662 if (!sem_op && result)
665 result += sem_op;
666 if (result < 0)
668 if (result > SEMVMX)
679 curr->semval = result;
692 result = -ERANGE;
699 result = -EAGAIN;
701 result = 1;
713 return result;
718 int result, sem_op, nsops;
742 result = curr->semval;
744 if (!sem_op && result)
747 result += sem_op;
748 if (result < 0)
751 if (result > SEMVMX)
766 result = curr->semval;