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

Function smr_init

freebsd/kern/subr_smr.c:625–633  ·  view source on GitHub ↗

* Initialize the UMA slab zone. */

Source from the content-addressed store, hash-verified

623 * Initialize the UMA slab zone.
624 */
625void
626smr_init(void)
627{
628
629 smr_shared_zone = uma_zcreate("SMR SHARED", sizeof(struct smr_shared),
630 NULL, NULL, NULL, NULL, (CACHE_LINE_SIZE * 2) - 1, 0);
631 smr_zone = uma_zcreate("SMR CPU", sizeof(struct smr),
632 NULL, NULL, NULL, NULL, (CACHE_LINE_SIZE * 2) - 1, UMA_ZONE_PCPU);
633}

Callers 1

uma_startup1Function · 0.85

Calls 1

uma_zcreateFunction · 0.85

Tested by

no test coverage detected