Home
last modified time | relevance | path

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

/freebsd/sbin/hastd/
H A Devent.c45 struct nv *nvin, *nvout; in event_send() local
51 nvin = nvout = NULL; in event_send()
56 nvout = nv_alloc(); in event_send()
57 nv_add_uint8(nvout, (uint8_t)event, "event"); in event_send()
58 error = nv_error(nvout); in event_send()
64 if (hast_proto_send(res, res->hr_event, nvout, NULL, 0) == -1) { in event_send()
79 if (nvout != NULL) in event_send()
80 nv_free(nvout); in event_send()
86 struct nv *nvin, *nvout; in event_recv() local
93 nvin = nvout = NULL; in event_recv()
[all …]
H A Dsecondary.c132 output_status_aux(struct nv *nvout) in output_status_aux() argument
135 nv_add_uint64(nvout, (uint64_t)hio_free_list_size, "idle_queue_size"); in output_status_aux()
136 nv_add_uint64(nvout, (uint64_t)hio_disk_list_size, "local_queue_size"); in output_status_aux()
137 nv_add_uint64(nvout, (uint64_t)hio_send_list_size, "send_queue_size"); in output_status_aux()
220 struct nv *nvout; in init_remote() local
230 nvout = nv_alloc(); in init_remote()
231 nv_add_int64(nvout, (int64_t)res->hr_datasize, "datasize"); in init_remote()
232 nv_add_int32(nvout, (int32_t)res->hr_extentsize, "extentsize"); in init_remote()
236 nv_add_uint64(nvout, res->hr_secondary_localcnt, "localcnt"); in init_remote()
237 nv_add_uint64(nvout, res->hr_secondary_remotecnt, "remotecnt"); in init_remote()
[all …]
H A Dhastd.c440 struct nv *nvin, *nvout; in resource_reload() local
445 nvout = nv_alloc(); in resource_reload()
446 nv_add_uint8(nvout, CONTROL_RELOAD, "cmd"); in resource_reload()
447 nv_add_string(nvout, res->hr_remoteaddr, "remoteaddr"); in resource_reload()
448 nv_add_string(nvout, res->hr_sourceaddr, "sourceaddr"); in resource_reload()
449 nv_add_int32(nvout, (int32_t)res->hr_replication, "replication"); in resource_reload()
450 nv_add_int32(nvout, (int32_t)res->hr_checksum, "checksum"); in resource_reload()
451 nv_add_int32(nvout, (int32_t)res->hr_compression, "compression"); in resource_reload()
452 nv_add_int32(nvout, (int32_t)res->hr_timeout, "timeout"); in resource_reload()
453 nv_add_string(nvout, res->hr_exec, "exec"); in resource_reload()
[all …]
H A Dprimary.c264 output_status_aux(struct nv *nvout) in output_status_aux() argument
267 nv_add_uint64(nvout, (uint64_t)hio_free_list_size, in output_status_aux()
269 nv_add_uint64(nvout, (uint64_t)hio_send_local_list_size, in output_status_aux()
271 nv_add_uint64(nvout, (uint64_t)hio_send_remote_list_size, in output_status_aux()
273 nv_add_uint64(nvout, (uint64_t)hio_recv_remote_list_size, in output_status_aux()
275 nv_add_uint64(nvout, (uint64_t)hio_done_list_size, in output_status_aux()
634 struct nv *nvout, *nvin; in init_remote() local
660 nvout = nv_alloc(); in init_remote()
661 nv_add_string(nvout, res->hr_name, "resource"); in init_remote()
662 nv_add_uint8(nvout, HAST_PROTO_VERSION, "version"); in init_remote()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_hast/
H A Dhast_snmp.c97 static int hastctl(struct nv *nvin, struct nv **nvout);
201 hastctl(struct nv *nvin, struct nv **nvout) in hastctl() argument
247 *nvout = nv; in hastctl()
254 struct nv *nvin, *nvout; in set_role() local
261 error = hastctl(nvin, &nvout); in set_role()
265 nv_free(nvout); in set_role()
273 struct nv *nvin, *nvout; in update_resources() local
290 error = hastctl(nvin, &nvout); in update_resources()
296 str = nv_get_string(nvout, "resource%u", i); in update_resources()
307 error = nv_get_int16(nvout, "error%u", i); in update_resources()
[all …]