Searched refs:nvout (Results 1 - 6 of 6) sorted by relevance

/freebsd-11-stable/sbin/hastd/
H A Devent.c47 struct nv *nvin, *nvout; local
53 nvin = nvout = NULL;
58 nvout = nv_alloc();
59 nv_add_uint8(nvout, (uint8_t)event, "event");
60 error = nv_error(nvout);
66 if (hast_proto_send(res, res->hr_event, nvout, NULL, 0) == -1) {
81 if (nvout != NULL)
82 nv_free(nvout);
88 struct nv *nvin, *nvout; local
95 nvin = nvout
[all...]
H A Dcontrol.c76 control_set_role_common(struct hastd_config *cfg, struct nv *nvout, argument
83 nv_add_string(nvout, name, "resource%u", no);
94 nv_add_int16(nvout, EHAST_NOENTRY, "error%u", no);
101 nv_add_string(nvout, role2str(res->hr_role), "role%u", no);
152 control_status_worker(struct hast_resource *res, struct nv *nvout, argument
196 nv_add_string(nvout, str, "status%u", no);
197 nv_add_uint64(nvout, nv_get_uint64(cnvin, "dirty"), "dirty%u", no);
198 nv_add_uint32(nvout, nv_get_uint32(cnvin, "extentsize"),
200 nv_add_uint32(nvout, nv_get_uint32(cnvin, "keepdirty"),
202 nv_add_uint64(nvout, nv_get_uint6
240 control_status(struct hastd_config *cfg, struct nv *nvout, struct hast_resource *res, const char *name, unsigned int no) argument
311 struct nv *nvin, *nvout; local
437 struct nv *nvin, *nvout; local
[all...]
H A Dsecondary.c135 output_status_aux(struct nv *nvout) argument
138 nv_add_uint64(nvout, (uint64_t)hio_free_list_size, "idle_queue_size");
139 nv_add_uint64(nvout, (uint64_t)hio_disk_list_size, "local_queue_size");
140 nv_add_uint64(nvout, (uint64_t)hio_send_list_size, "send_queue_size");
223 struct nv *nvout; local
233 nvout = nv_alloc();
234 nv_add_int64(nvout, (int64_t)res->hr_datasize, "datasize");
235 nv_add_int32(nvout, (int32_t)res->hr_extentsize, "extentsize");
239 nv_add_uint64(nvout, res->hr_secondary_localcnt, "localcnt");
240 nv_add_uint64(nvout, re
865 struct nv *nvout; local
[all...]
H A Dhastd.c443 struct nv *nvin, *nvout; local
448 nvout = nv_alloc();
449 nv_add_uint8(nvout, CONTROL_RELOAD, "cmd");
450 nv_add_string(nvout, res->hr_remoteaddr, "remoteaddr");
451 nv_add_string(nvout, res->hr_sourceaddr, "sourceaddr");
452 nv_add_int32(nvout, (int32_t)res->hr_replication, "replication");
453 nv_add_int32(nvout, (int32_t)res->hr_checksum, "checksum");
454 nv_add_int32(nvout, (int32_t)res->hr_compression, "compression");
455 nv_add_int32(nvout, (int32_t)res->hr_timeout, "timeout");
456 nv_add_string(nvout, re
749 struct nv *nvin, *nvout, *nverr; local
[all...]
H A Dprimary.c267 output_status_aux(struct nv *nvout) argument
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; local
663 nvout = nv_alloc();
664 nv_add_string(nvout, res->hr_name, "resource");
665 nv_add_uint8(nvout, HAST_PROTO_VERSIO
[all...]
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_hast/
H A Dhast_snmp.c100 static int hastctl(struct nv *nvin, struct nv **nvout);
204 hastctl(struct nv *nvin, struct nv **nvout) argument
250 *nvout = nv;
257 struct nv *nvin, *nvout; local
264 error = hastctl(nvin, &nvout);
268 nv_free(nvout);
276 struct nv *nvin, *nvout; local
293 error = hastctl(nvin, &nvout);
299 str = nv_get_string(nvout, "resource%u", i);
310 error = nv_get_int16(nvout, "erro
[all...]

Completed in 282 milliseconds