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

Function ddt_alloc

freebsd/contrib/openzfs/module/zfs/ddt.c:631–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631static ddt_entry_t *
632ddt_alloc(const ddt_key_t *ddk)
633{
634 ddt_entry_t *dde;
635
636 dde = kmem_cache_alloc(ddt_entry_cache, KM_SLEEP);
637 bzero(dde, sizeof (ddt_entry_t));
638 cv_init(&dde->dde_cv, NULL, CV_DEFAULT, NULL);
639
640 dde->dde_key = *ddk;
641
642 return (dde);
643}
644
645static void
646ddt_free(ddt_entry_t *dde)

Callers 2

ddt_lookupFunction · 0.85
ddt_repair_startFunction · 0.85

Calls 3

kmem_cache_allocFunction · 0.85
bzeroFunction · 0.85
cv_initFunction · 0.50

Tested by

no test coverage detected