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

1234

/freebsd-10.3-release/lib/libnv/
H A DMakefile7 LIB= nv
19 INCS+= nv.h
21 MAN+= nv.3
23 MLINKS+=nv.3 libnv.3 \
24 nv.3 nvlist.3
25 MLINKS+=nv.3 nvlist_add_binary.3 \
26 nv.3 nvlist_add_bool.3 \
27 nv.3 nvlist_add_descriptor.3 \
28 nv.3 nvlist_add_null.3 \
29 nv
[all...]
/freebsd-10.3-release/sbin/hastd/
H A Dnv.h29 * $FreeBSD: releng/10.3/sbin/hastd/nv.h 217732 2011-01-22 22:38:18Z pjd $
44 struct nv;
46 struct nv *nv_alloc(void);
47 void nv_free(struct nv *nv);
48 int nv_error(const struct nv *nv);
49 int nv_set_error(struct nv *nv, int error);
50 int nv_validate(struct nv *n
[all...]
H A Dhast_checksum.h35 #include <nv.h>
39 int checksum_send(const struct hast_resource *res, struct nv *nv,
41 int checksum_recv(const struct hast_resource *res, struct nv *nv,
H A Dhast_compression.h35 #include <nv.h>
39 int compression_send(const struct hast_resource *res, struct nv *nv,
41 int compression_recv(const struct hast_resource *res, struct nv *nv,
H A Dhast_proto.h37 #include <nv.h>
41 struct nv *nv, const void *data, size_t size);
42 int hast_proto_recv_hdr(const struct proto_conn *conn, struct nv **nvp);
44 struct proto_conn *conn, struct nv *nv, void *data, size_t size);
H A Dhastd.h38 #include <nv.h>
50 void hastd_secondary(struct hast_resource *res, struct nv *nvin);
52 void primary_config_reload(struct hast_resource *res, struct nv *nv);
H A Dmetadata.c40 #include <nv.h>
51 struct nv *nv; local
110 nv = nv_ntoh(eb);
111 if (nv == NULL) {
119 str = nv_get_string(nv, "resource");
123 nv_free(nv);
127 res->hr_datasize = nv_get_uint64(nv, "datasize");
128 res->hr_extentsize = (int)nv_get_uint32(nv, "extentsize");
129 res->hr_keepdirty = (int)nv_get_uint32(nv, "keepdirt
172 struct nv *nv; local
[all...]
H A Dhast_proto.c41 #include <nv.h>
54 /* Size of nv headers. */
58 typedef int hps_send_t(const struct hast_resource *, struct nv *nv, void **,
60 typedef int hps_recv_t(const struct hast_resource *, struct nv *nv, void **,
77 * Send the given nv structure via conn.
78 * We keep headers in nv structure and pass data in separate argument.
83 struct nv *nv, cons
82 hast_proto_send(const struct hast_resource *res, struct proto_conn *conn, struct nv *nv, const void *data, size_t size) argument
137 struct nv *nv; local
176 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.c31 __FBSDID("$FreeBSD: releng/10.3/sbin/hastd/nv.c 260006 2013-12-28 19:21:22Z trociny $");
48 #include "nv.h"
88 struct nv { struct
109 #define NV_CHECK(nv) do { \
110 PJDLOG_ASSERT((nv) != NULL); \
111 PJDLOG_ASSERT((nv)->nv_magic == NV_MAGIC); \
114 static void nv_add(struct nv *nv, const unsigned char *value, size_t vsize,
116 static void nv_addv(struct nv *nv, cons
129 struct nv *nv; local
148 nv_free(struct nv *nv) argument
165 nv_error(const struct nv *nv) argument
180 nv_set_error(struct nv *nv, int error) argument
199 nv_validate(struct nv *nv, size_t *extrap) argument
343 nv_hton(struct nv *nv) argument
375 struct nv *nv; local
466 nv_add_stringf(struct nv *nv, const char *name, const char *valuefmt, ...) argument
476 nv_add_stringv(struct nv *nv, const char *name, const char *valuefmt, va_list valueap) argument
576 nv_vexists(struct nv *nv, const char *namefmt, va_list nameap) argument
596 nv_exists(struct nv *nv, const char *namefmt, ...) argument
609 nv_assert(struct nv *nv, const char *namefmt, ...) argument
622 nv_dump(struct nv *nv) argument
759 nv_add(struct nv *nv, const unsigned char *value, size_t vsize, int type, const char *name) argument
816 nv_addv(struct nv *nv, const unsigned char *value, size_t vsize, int type, const char *namefmt, va_list nameap) argument
829 nv_find(struct nv *nv, int type, const char *namefmt, va_list nameap) argument
[all...]
H A Dhast_checksum.c40 #include <nv.h>
93 checksum_send(const struct hast_resource *res, struct nv *nv, void **datap, argument
113 nv_add_string(nv, checksum_name(res->hr_checksum), "checksum");
114 nv_add_uint8_array(nv, hash, hsize, "hash");
115 if (nv_error(nv) != 0) {
116 errno = nv_error(nv);
123 checksum_recv(const struct hast_resource *res __unused, struct nv *nv, argument
131 algo = nv_get_string(nv, "checksu
[all...]
H A Dhast_compression.c38 #include <nv.h>
203 compression_send(const struct hast_resource *res, struct nv *nv, void **datap, argument
235 nv_add_string(nv, compression_name(compression), "compression");
236 if (nv_error(nv) != 0) {
238 errno = nv_error(nv);
251 compression_recv(const struct hast_resource *res __unused, struct nv *nv, argument
258 algo = nv_get_string(nv, "compression");
/freebsd-10.3-release/sbin/hastctl/
H A Dhastctl.c46 #include "nv.h"
261 control_set_role(struct nv *nv, const char *newrole) argument
270 res = nv_get_string(nv, "resource%u", ii);
274 error = nv_get_int16(nv, "error%u", ii);
281 oldrole = nv_get_string(nv, "role%u", ii);
294 control_list(struct nv *nv) argument
304 str = nv_get_string(nv, "resource%u", ii);
308 error = nv_get_int16(nv, "erro
370 control_status(struct nv *nv) argument
409 struct nv *nv; local
[all...]
/freebsd-10.3-release/contrib/amd/wire-test/
H A Dwire-test.c60 int nv, ret; local
108 for (nv=2; nv<=3; ++nv) {
109 fprintf(stderr, "\ttesting vers=%d, proto=\"%s\" -> ", nv, proto);
110 ret = get_nfs_version(testhost, ip, nv, proto);
118 for (nv=2; nv<=3; ++nv) {
119 fprintf(stderr, "\ttesting vers=%d, proto=\"%s\" -> ", nv, prot
[all...]
/freebsd-10.3-release/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-10.3-release/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,
H A Dzpool_vdev.c589 nvlist_t *nv; local
603 nv = top[t];
609 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log);
613 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE,
615 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
639 verify(nvlist_lookup_uint64(nv,
926 make_disks(zpool_handle_t *zhp, nvlist_t *nv) argument
938 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0);
940 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
951 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PAT
1073 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, boolean_t replacing, boolean_t isspare) argument
1206 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local
[all...]
/freebsd-10.3-release/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-10.3-release/sys/dev/nvram2env/
H A Dnvram2env.c197 struct nvram * nv; local
224 nv = malloc(size<<2, M_DEVBUF, M_WAITOK | M_ZERO);
225 if (!nv)
229 ((uint32_t *)nv)[i] = read_4(sc, i<<2);
232 device_printf(dev, "sig = %#x\n", nv->sig);
233 device_printf(dev, "size = %#x\n", nv->size);
241 pair = (char*)nv+4;
243 pair = (char*)nv+4;
245 pair = (char*)nv+20;
247 pair = (char*)nv
[all...]
/freebsd-10.3-release/contrib/gcclibs/libiberty/
H A Dsafe-ctype.c132 #define nv _sch_isnvsp macro
150 #define Z (const unsigned short) (nv |cn) /* NUL */
151 #define M (const unsigned short) (nv|sp |cn) /* cursor movement: \f \v */
153 #define T (const unsigned short) (nv|sp|bl|cn) /* tab */
154 #define S (const unsigned short) (nv|sp|bl|pr) /* space */
/freebsd-10.3-release/contrib/binutils/libiberty/
H A Dsafe-ctype.c132 #define nv _sch_isnvsp macro
150 #define Z (const unsigned short) (nv |cn) /* NUL */
151 #define M (const unsigned short) (nv|sp |cn) /* cursor movement: \f \v */
153 #define T (const unsigned short) (nv|sp|bl|cn) /* tab */
154 #define S (const unsigned short) (nv|sp|bl|pr) /* space */
/freebsd-10.3-release/sys/dev/acpi_support/
H A Dacpi_fujitsu.c469 struct int_nameval nv; local
476 nv = sc->gbll;
479 nv = sc->gbls;
482 nv = sc->gmou;
486 nv = sc->gvol;
489 nv = sc->ghks;
492 nv = sc->gsif;
495 nv = sc->rbll;
498 nv = sc->rvol;
504 if(!nv
525 struct int_nameval nv; local
[all...]
/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_label.c223 nvlist_t *nv = NULL; local
225 nv = fnvlist_alloc();
227 fnvlist_add_string(nv, ZPOOL_CONFIG_TYPE, vd->vdev_ops->vdev_op_type);
229 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ID, vd->vdev_id);
230 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd->vdev_guid);
233 fnvlist_add_string(nv, ZPOOL_CONFIG_PATH, vd->vdev_path);
236 fnvlist_add_string(nv, ZPOOL_CONFIG_DEVID, vd->vdev_devid);
239 fnvlist_add_string(nv, ZPOOL_CONFIG_PHYS_PATH,
243 fnvlist_add_string(nv, ZPOOL_CONFIG_FRU, vd->vdev_fru);
264 fnvlist_add_uint64(nv, ZPOOL_CONFIG_NPARIT
[all...]
/freebsd-10.3-release/contrib/netbsd-tests/lib/libc/regex/
H A Dt_regex_att.c200 } nv[]= { local
205 for (size_t i = 0; i < __arraycount(nv); i++)
206 if (strcmp(nv[i].n, s) == 0) {
207 if (nv[i].v)
268 } nv[] = { local
294 for (size_t i = 0; i < __arraycount(nv); i++)
295 if (strcmp(s, nv[i].n) == 0) {
296 if (nv[i].ce & COMP)
297 *comp = nv[i].v;
298 if (nv[
[all...]
/freebsd-10.3-release/lib/libmt/
H A Dmtlib.c110 struct mt_status_nv *nv; local
137 nv = malloc(sizeof(*nv));
138 if (nv == NULL) {
143 __func__, sizeof(*nv));
145 bzero(nv, sizeof(*nv));
146 nv->name = strdup(attr[i]);
147 nv->value = strdup(attr[i+1]);
148 STAILQ_INSERT_TAIL(&entry->nv_list, nv, link
232 struct mt_status_nv *nv; local
358 struct mt_status_nv *nv, *nv2; local
[all...]
/freebsd-10.3-release/usr.sbin/bsnmpd/modules/snmp_hast/
H A Dhast_snmp.c41 #include "nv.h"
98 static int hastctl(struct nv *nvin, struct nv **nvout);
202 hastctl(struct nv *nvin, struct nv **nvout)
206 struct nv *nv; local
234 if (hast_proto_recv_hdr(conn, &nv) == -1) {
241 error = nv_get_int16(nv, "error");
244 nv_free(nv);
[all...]

Completed in 142 milliseconds

1234