MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fxrng_push_seed_generation

Function fxrng_push_seed_generation

freebsd/kern/kern_sharedpage.c:269–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267
268#ifdef RANDOM_FENESTRASX
269void
270fxrng_push_seed_generation(uint64_t gen)
271{
272 if (fxrng_shpage_mapping == NULL || !fxrng_enabled)
273 return;
274 KASSERT(gen < INT32_MAX,
275 ("fxrng seed version shouldn't roll over a 32-bit counter "
276 "for approximately 456,000 years"));
277 atomic_store_rel_32(&fxrng_shpage_mapping->fx_generation32,
278 (uint32_t)gen);
279}
280
281static void
282alloc_sv_fxrng_generation(void)

Callers

nothing calls this directly

Calls 1

atomic_store_rel_32Function · 0.85

Tested by

no test coverage detected