Lines Matching full: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; in errseq_set() local
81 /* Clear out error bits and set new error */ in errseq_set()
82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set()
86 new += ERRSEQ_CTR_INC; in errseq_set()
89 if (new == old) { in errseq_set()
90 cur = new; in errseq_set()
94 /* Try to swap the new value into place */ in errseq_set()
95 cur = cmpxchg(eseq, old, new); in errseq_set()
101 if (likely(cur == old || cur == new)) in errseq_set()
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; in errseq_check_and_advance() local
199 new = old | ERRSEQ_SEEN; in errseq_check_and_advance()
200 if (new != old) in errseq_check_and_advance()
201 cmpxchg(eseq, old, new); in errseq_check_and_advance()
202 *since = new; in errseq_check_and_advance()
203 err = -(new & MAX_ERRNO); in errseq_check_and_advance()