Home
last modified time | relevance | path

Searched refs:nvhdl (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dfm.c573 nv_alloc_t *nvhdl = kmem_zalloc(sizeof (nv_alloc_t), KM_SLEEP); in fm_nva_xcreate() local
575 if (bufsz == 0 || nv_alloc_init(nvhdl, nv_fixed_ops, buf, bufsz) != 0) { in fm_nva_xcreate()
576 kmem_free(nvhdl, sizeof (nv_alloc_t)); in fm_nva_xcreate()
580 return (nvhdl); in fm_nva_xcreate()
612 nv_alloc_t *nvhdl; in fm_nvlist_create() local
615 nvhdl = kmem_zalloc(sizeof (nv_alloc_t), KM_SLEEP); in fm_nvlist_create()
617 if (nv_alloc_init(nvhdl, &fm_mem_alloc_ops, NULL, 0) != 0) { in fm_nvlist_create()
618 kmem_free(nvhdl, sizeof (nv_alloc_t)); in fm_nvlist_create()
623 nvhdl = nva; in fm_nvlist_create()
626 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, nvhdl) != 0) { in fm_nvlist_create()
[all …]