Home | History | Annotate | Download | only in kern

Lines Matching defs:epoch

59  *	* The entropy epoch is the number that changes when we
189 unsigned epoch; /* (A) changes when needed -> 0 */
202 .epoch = (unsigned)-1, /* -1 means entropy never consolidated */
404 "epoch", SYSCTL_DESCR("Entropy epoch"),
405 NULL, 0, &E->epoch, 0, KERN_ENTROPY_EPOCH, CTL_EOL);
667 * Returns the current entropy epoch. If this changes, you should
677 * unsigned epoch;
680 * unsigned epoch = entropy_epoch();
681 * if (__predict_false(epoch != foo->epoch)) {
686 * foo->epoch = epoch;
697 return atomic_load_relaxed(&E->epoch);
840 if (E->epoch == (unsigned)-1)
1190 * the entropy epoch.
1241 /* Advance the epoch and notify waiters. */
1300 * the entropy epoch and notify waiters.
1310 unsigned epoch;
1334 /* Set the epoch; roll over from UINTMAX-1 to 1. */
1337 epoch = E->epoch + 1;
1338 if (epoch == 0 || epoch == (unsigned)-1)
1339 epoch = 1;
1340 atomic_store_relaxed(&E->epoch, epoch);
1342 KASSERT(E->epoch != (unsigned)-1);
1594 if (__predict_false(E->epoch == (unsigned)-1) &&