Lines Matching defs:new
19 * can later be used to tell whether any new errors have occurred since that
22 * Note that there is a risk of collisions if new errors are being recorded
26 * been sampled since a new value was recorded. That allows us to avoid bumping
30 * A new errseq_t should always be zeroed out. A errseq_t value of all zeroes
79 errseq_t new;
81 /* Clear out error bits and set new error */
82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err;
86 new += ERRSEQ_CTR_INC;
89 if (new == old) {
90 cur = new;
94 /* Try to swap the new value into place */
95 cur = cmpxchg(eseq, old, new);
101 if (likely(cur == old || cur == new))
116 * If the error has been "seen", new callers will not see an old error.
164 * swap it into place as the new eseq value. Then, set that value as the new
172 * Return: Negative errno if one has been stored, or 0 if no new error has
178 errseq_t old, new;
199 new = old | ERRSEQ_SEEN;
200 if (new != old)
201 cmpxchg(eseq, old, new);
202 *since = new;
203 err = -(new & MAX_ERRNO);