Lines Matching defs:nvout
267 output_status_aux(struct nv *nvout)
270 nv_add_uint64(nvout, (uint64_t)hio_free_list_size,
272 nv_add_uint64(nvout, (uint64_t)hio_send_local_list_size,
274 nv_add_uint64(nvout, (uint64_t)hio_send_remote_list_size,
276 nv_add_uint64(nvout, (uint64_t)hio_recv_remote_list_size,
278 nv_add_uint64(nvout, (uint64_t)hio_done_list_size,
637 struct nv *nvout, *nvin;
663 nvout = nv_alloc();
664 nv_add_string(nvout, res->hr_name, "resource");
665 nv_add_uint8(nvout, HAST_PROTO_VERSION, "version");
666 if (nv_error(nvout) != 0) {
667 pjdlog_common(LOG_WARNING, 0, nv_error(nvout),
670 nv_free(nvout);
673 if (hast_proto_send(res, out, nvout, NULL, 0) == -1) {
677 nv_free(nvout);
680 nv_free(nvout);
732 nvout = nv_alloc();
733 nv_add_string(nvout, res->hr_name, "resource");
734 nv_add_uint8_array(nvout, res->hr_token, sizeof(res->hr_token),
747 nv_add_int8(nvout, 1, "virgin");
749 nv_add_uint64(nvout, res->hr_resuid, "resuid");
750 nv_add_uint64(nvout, res->hr_primary_localcnt, "localcnt");
751 nv_add_uint64(nvout, res->hr_primary_remotecnt, "remotecnt");
752 if (nv_error(nvout) != 0) {
753 pjdlog_common(LOG_WARNING, 0, nv_error(nvout),
756 nv_free(nvout);
759 if (hast_proto_send(res, in, nvout, NULL, 0) == -1) {
763 nv_free(nvout);
766 nv_free(nvout);