Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_xml.c226 void *arrbuf; in xlate_common() local
294 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (int32_t)))) in xlate_common()
303 ((int32_t *)arrbuf)[i++] = (int32_t)ui; in xlate_common()
307 rv = nvlist_add_int32_array(nvl, name, (int32_t *)arrbuf, in xlate_common()
309 topo_mod_free(mp, arrbuf, (nelems * sizeof (int32_t))); in xlate_common()
312 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (uint32_t)))) in xlate_common()
321 ((uint32_t *)arrbuf)[i++] = (uint32_t)ui; in xlate_common()
325 rv = nvlist_add_uint32_array(nvl, name, (uint32_t *)arrbuf, in xlate_common()
327 topo_mod_free(mp, arrbuf, (nelems * sizeof (uint32_t))); in xlate_common()
330 if ((arrbuf = topo_mod_alloc(mp, (nelems * sizeof (int64_t)))) in xlate_common()
[all …]