Lines Matching refs:nvl

131 	nvlist_t	*nvl = NULL;
149 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
154 if (nvlist_add_int32(nvl, RI_HDL_FLAGS, hdl->flags) != 0) {
160 nvlist_add_byte_array(nvl, RI_HDL_APS, (uchar_t *)buf, size) != 0) {
167 nvlist_add_byte_array(nvl, RI_HDL_CPU_CAPS, (uchar_t *)buf,
175 nvlist_add_byte_array(nvl, RI_HDL_MEM_CAPS, (uchar_t *)buf,
181 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
186 nvlist_free(nvl);
194 nvlist_free(nvl);
205 nvlist_t *nvl = NULL;
214 if (nvlist_alloc(&nvl, 0, 0) != 0) {
224 if (nvlist_add_byte_array(nvl, RI_AP_T, (uchar_t *)buf,
234 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
239 nvlist_free(nvl);
247 nvlist_free(nvl);
258 nvlist_t *nvl = NULL;
267 if (nvlist_alloc(&nvl, 0, 0) != 0) {
277 if (nvlist_add_byte_array(nvl, RI_DEV_T, (uchar_t *)buf,
287 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
292 nvlist_free(nvl);
300 nvlist_free(nvl);
312 nvlist_t *nvl = NULL;
321 if (nvlist_alloc(&nvl, 0, 0) != 0) {
331 if (nvlist_add_byte_array(nvl, RI_CLIENT_T, (uchar_t *)buf,
341 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
346 nvlist_free(nvl);
354 nvlist_free(nvl);
362 nvlist_t *nvl = NULL;
366 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
371 if (pack_add_byte_array(ap->conf_props, RI_AP_PROPS, nvl,
378 if (nvlist_add_byte_array(nvl, RI_AP_CPUS, (uchar_t *)buf,
388 if (nvlist_add_byte_array(nvl, RI_AP_MEMS, (uchar_t *)buf,
398 if (nvlist_add_byte_array(nvl, RI_AP_IOS, (uchar_t *)buf,
405 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
410 nvlist_free(nvl);
418 nvlist_free(nvl);
426 nvlist_t *nvl = NULL;
430 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
435 if (pack_add_byte_array(dev->conf_props, RI_DEV_PROPS, nvl,
442 if (nvlist_add_byte_array(nvl, RI_DEV_CLIENTS, (uchar_t *)buf,
450 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
455 nvlist_free(nvl);
463 nvlist_free(nvl);
471 nvlist_t *nvl = NULL;
475 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
481 nvl, encoding) != 0) {
490 RI_CLIENT_VERB_PROPS, nvl, encoding) != 0) {
494 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
499 nvlist_free(nvl);
507 nvlist_free(nvl);
516 pack_add_byte_array(nvlist_t *nvl_packme, char *name, nvlist_t *nvl,
528 if (nvlist_add_byte_array(nvl, name, (uchar_t *)buf, size) != 0) {
544 nvlist_t *nvl = NULL;
555 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
560 if (nvlist_lookup_int32(nvl, RI_HDL_FLAGS, &ri_hdl->flags) != 0) {
568 if (nvlist_lookup_byte_array(nvl, RI_HDL_APS, (uchar_t **)&buf,
580 if (nvlist_lookup_byte_array(nvl, RI_HDL_CPU_CAPS, (uchar_t **)&buf,
592 if (nvlist_lookup_byte_array(nvl, RI_HDL_MEM_CAPS, (uchar_t **)&buf,
608 nvlist_free(nvl);
617 nvlist_t *nvl;
622 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
627 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) {
655 nvlist_free(nvl);
661 nvlist_free(nvl);
676 nvlist_t *nvl;
681 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
686 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) {
712 nvlist_free(nvl);
718 nvlist_free(nvl);
733 nvlist_t *nvl;
738 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
743 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) {
771 nvlist_free(nvl);
777 nvlist_free(nvl);
791 nvlist_t *nvl;
793 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
798 if (lookup_unpack_byte_array(nvl, RI_CLIENT_USAGE_PROPS,
800 nvlist_free(nvl);
814 if (nvlist_lookup_byte_array(nvl, RI_CLIENT_VERB_PROPS,
819 nvlist_free(nvl);
824 nvlist_free(nvl);
832 nvlist_t *nvl;
834 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
839 if (lookup_unpack_byte_array(nvl, RI_DEV_PROPS,
841 nvlist_free(nvl);
849 if (nvlist_lookup_byte_array(nvl, RI_DEV_CLIENTS, (uchar_t **)&buf,
853 nvlist_free(nvl);
858 nvlist_free(nvl);
862 nvlist_free(nvl);
870 nvlist_t *nvl;
872 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
877 if (lookup_unpack_byte_array(nvl, RI_AP_PROPS, &ap->conf_props) != 0) {
878 nvlist_free(nvl);
886 if (nvlist_lookup_byte_array(nvl, RI_AP_CPUS, (uchar_t **)&buf,
890 nvlist_free(nvl);
895 nvlist_free(nvl);
899 if (nvlist_lookup_byte_array(nvl, RI_AP_MEMS, (uchar_t **)&buf,
903 nvlist_free(nvl);
908 nvlist_free(nvl);
912 if (nvlist_lookup_byte_array(nvl, RI_AP_IOS, (uchar_t **)&buf,
916 nvlist_free(nvl);
921 nvlist_free(nvl);
925 nvlist_free(nvl);