Searched refs:nv (Results 1 - 25 of 154) sorted by relevance

1234567

/freebsd-11-stable/sbin/hastd/
H A Dnv.h31 * $FreeBSD: stable/11/sbin/hastd/nv.h 330449 2018-03-05 07:26:05Z eadler $
46 struct nv;
48 struct nv *nv_alloc(void);
49 void nv_free(struct nv *nv);
50 int nv_error(const struct nv *nv);
51 int nv_set_error(struct nv *nv, int error);
52 int nv_validate(struct nv *n
[all...]
H A Dhast_compression.h37 #include <nv.h>
41 int compression_send(const struct hast_resource *res, struct nv *nv,
43 int compression_recv(const struct hast_resource *res, struct nv *nv,
H A Dhast_checksum.h37 #include <nv.h>
41 int checksum_send(const struct hast_resource *res, struct nv *nv,
43 int checksum_recv(const struct hast_resource *res, struct nv *nv,
H A Dhast_proto.h39 #include <nv.h>
43 struct nv *nv, const void *data, size_t size);
44 int hast_proto_recv_hdr(const struct proto_conn *conn, struct nv **nvp);
46 struct proto_conn *conn, struct nv *nv, void *data, size_t size);
H A Dhastd.h40 #include <nv.h>
52 void hastd_secondary(struct hast_resource *res, struct nv *nvin);
54 void primary_config_reload(struct hast_resource *res, struct nv *nv);
H A Dmetadata.c42 #include <nv.h>
53 struct nv *nv; local
112 nv = nv_ntoh(eb);
113 if (nv == NULL) {
121 str = nv_get_string(nv, "resource");
125 nv_free(nv);
129 res->hr_datasize = nv_get_uint64(nv, "datasize");
130 res->hr_extentsize = (int)nv_get_uint32(nv, "extentsize");
131 res->hr_keepdirty = (int)nv_get_uint32(nv, "keepdirt
174 struct nv *nv; local
[all...]
H A Dhast_proto.c43 #include <nv.h>
56 /* Size of nv headers. */
60 typedef int hps_send_t(const struct hast_resource *, struct nv *nv, void **,
62 typedef int hps_recv_t(const struct hast_resource *, struct nv *nv, void **,
79 * Send the given nv structure via conn.
80 * We keep headers in nv structure and pass data in separate argument.
85 struct nv *nv, cons
84 hast_proto_send(const struct hast_resource *res, struct proto_conn *conn, struct nv *nv, const void *data, size_t size) argument
139 struct nv *nv; local
178 hast_proto_recv_data(const struct hast_resource *res, struct proto_conn *conn, struct nv *nv, void *data, size_t size) argument
[all...]
H A Dnv.c33 __FBSDID("$FreeBSD: stable/11/sbin/hastd/nv.c 330449 2018-03-05 07:26:05Z eadler $");
50 #include "nv.h"
90 struct nv { struct
111 #define NV_CHECK(nv) do { \
112 PJDLOG_ASSERT((nv) != NULL); \
113 PJDLOG_ASSERT((nv)->nv_magic == NV_MAGIC); \
116 static void nv_add(struct nv *nv, const unsigned char *value, size_t vsize,
118 static void nv_addv(struct nv *nv, cons
131 struct nv *nv; local
150 nv_free(struct nv *nv) argument
167 nv_error(const struct nv *nv) argument
182 nv_set_error(struct nv *nv, int error) argument
201 nv_validate(struct nv *nv, size_t *extrap) argument
345 nv_hton(struct nv *nv) argument
377 struct nv *nv; local
468 nv_add_stringf(struct nv *nv, const char *name, const char *valuefmt, ...) argument
478 nv_add_stringv(struct nv *nv, const char *name, const char *valuefmt, va_list valueap) argument
578 nv_vexists(struct nv *nv, const char *namefmt, va_list nameap) argument
598 nv_exists(struct nv *nv, const char *namefmt, ...) argument
611 nv_assert(struct nv *nv, const char *namefmt, ...) argument
624 nv_dump(struct nv *nv) argument
761 nv_add(struct nv *nv, const unsigned char *value, size_t vsize, int type, const char *name) argument
818 nv_addv(struct nv *nv, const unsigned char *value, size_t vsize, int type, const char *namefmt, va_list nameap) argument
831 nv_find(struct nv *nv, int type, const char *namefmt, va_list nameap) argument
[all...]
H A Dhast_checksum.c42 #include <nv.h>
95 checksum_send(const struct hast_resource *res, struct nv *nv, void **datap, argument
115 nv_add_string(nv, checksum_name(res->hr_checksum), "checksum");
116 nv_add_uint8_array(nv, hash, hsize, "hash");
117 if (nv_error(nv) != 0) {
118 errno = nv_error(nv);
125 checksum_recv(const struct hast_resource *res __unused, struct nv *nv, argument
133 algo = nv_get_string(nv, "checksu
[all...]
/freebsd-11-stable/lib/libcasper/services/cap_pwd/tests/
H A DMakefile7 LIBADD+= nv
/freebsd-11-stable/lib/libcasper/services/cap_dns/tests/
H A DMakefile7 LIBADD+= nv
/freebsd-11-stable/lib/libcasper/services/cap_grp/tests/
H A DMakefile7 LIBADD+= nv
/freebsd-11-stable/sbin/hastctl/
H A Dhastctl.c48 #include "nv.h"
263 control_set_role(struct nv *nv, const char *newrole) argument
272 res = nv_get_string(nv, "resource%u", ii);
276 error = nv_get_int16(nv, "error%u", ii);
283 oldrole = nv_get_string(nv, "role%u", ii);
296 control_list(struct nv *nv) argument
306 str = nv_get_string(nv, "resource%u", ii);
310 error = nv_get_int16(nv, "erro
372 control_status(struct nv *nv) argument
411 struct nv *nv; local
[all...]
/freebsd-11-stable/contrib/amd/wire-test/
H A Dwire-test.c56 int nv, ret; local
103 for (nv=2; nv<=3; ++nv) {
104 fprintf(stderr, "\ttesting vers=%d, proto=\"%s\" -> ", nv, proto);
105 ret = get_nfs_version(testhost, ip, nv, proto, 0);
113 for (nv=2; nv<=3; ++nv) {
114 fprintf(stderr, "\ttesting vers=%d, proto=\"%s\" -> ", nv, prot
[all...]
/freebsd-11-stable/lib/libcasper/services/cap_sysctl/tests/
H A DMakefile7 LIBADD+= nv
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/
H A Dt_forward.c74 int nv; local
82 nv = 1;
83 if (rump_sys___sysctl(mib, 4, NULL, NULL, &nv, sizeof(nv)) == -1)
108 int nv; local
111 nv = 200;
112 if (rump_sys___sysctl(mib, 4, NULL, NULL, &nv, sizeof(nv)) == -1)
/freebsd-11-stable/lib/libcasper/services/cap_random/
H A DMakefile14 LIBADD= nv
/freebsd-11-stable/sys/contrib/libnv/
H A Dnvlist_impl.h36 #include <sys/nv.h>
/freebsd-11-stable/lib/libnv/tests/
H A DMakefile17 LIBADD+= nv
/freebsd-11-stable/usr.sbin/iovctl/
H A DMakefile5 LIBADD= nv ucl m
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zpool/
H A Dzpool_util.c67 num_logs(nvlist_t *nv) argument
73 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/
H A Dt_convfp.c112 double nv; local
115 nv = 5.6;
116 uv = (unsigned long)nv;
119 "%.3f casted to unsigned long is %lu", nv, uv);
/freebsd-11-stable/lib/libcasper/services/cap_dns/
H A DMakefile17 LIBADD= nv
/freebsd-11-stable/lib/libcasper/services/cap_grp/
H A DMakefile17 LIBADD= nv
/freebsd-11-stable/lib/libcasper/services/cap_pwd/
H A DMakefile17 LIBADD= nv

Completed in 382 milliseconds

1234567