/freebsd-9.3-release/sbin/hastd/ |
H A D | nv.h | 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 *nv, size_ [all...] |
H A D | hast_checksum.h | 35 #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 D | hast_compression.h | 35 #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 D | hast_proto.h | 37 #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 D | hastd.h | 38 #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 D | metadata.c | 40 #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 D | hast_proto.c | 41 #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 D | nv.c | 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, const unsigned char *value, size_t vsize, 118 static struct nvhdr *nv_find(struct nv *n 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 D | hast_checksum.c | 40 #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 D | hast_compression.c | 38 #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-9.3-release/sbin/hastctl/ |
H A D | hastctl.c | 46 #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-9.3-release/contrib/amd/wire-test/ |
H A D | wire-test.c | 60 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-9.3-release/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_util.c | 67 num_logs(nvlist_t *nv) argument 73 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
|
H A D | zpool_vdev.c | 586 nvlist_t *nv; local 600 nv = top[t]; 606 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); 610 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, 612 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, 636 verify(nvlist_lookup_uint64(nv, 923 make_disks(zpool_handle_t *zhp, nvlist_t *nv) argument 935 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); 937 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, 948 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PAT 1070 check_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, boolean_t replacing, boolean_t isspare) argument 1203 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local [all...] |
H A D | zpool_util.h | 40 uint_t num_logs(nvlist_t *nv);
|
/freebsd-9.3-release/sys/dev/nvram2env/ |
H A D | nvram2env.c | 197 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-9.3-release/contrib/binutils/libiberty/ |
H A D | safe-ctype.c | 132 #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-9.3-release/contrib/gcclibs/libiberty/ |
H A D | safe-ctype.c | 132 #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-9.3-release/sys/dev/acpi_support/ |
H A D | acpi_fujitsu.c | 468 struct int_nameval nv; local 475 nv = sc->gbll; 478 nv = sc->gbls; 481 nv = sc->gmou; 485 nv = sc->gvol; 488 nv = sc->ghks; 491 nv = sc->gsif; 494 nv = sc->rbll; 497 nv = sc->rvol; 503 if(!nv 524 struct int_nameval nv; local [all...] |
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | vdev_label.c | 223 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-9.3-release/usr.sbin/bsnmpd/modules/snmp_hast/ |
H A D | hast_snmp.c | 41 #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...] |
/freebsd-9.3-release/contrib/binutils/binutils/ |
H A D | mclex.c | 209 mc_add_keyword_ascii (const char *sz, int rid, const char *grp, rc_uint_type nv, const char *sv) argument 217 mc_add_keyword (usz, rid, grp, nv, usv); 221 mc_add_keyword (unichar *usz, int rid, const char *grp, rc_uint_type nv, unichar *sv) argument 243 c->nval = nv; 247 const wind_language_t *lag = wind_find_language_by_id ((unsigned) nv); 250 fatal ("Language ident 0x%lx is not resolvable.\n", (long) nv); 264 n->nval = nv; 268 const wind_language_t *lag = wind_find_language_by_id ((unsigned) nv); 270 fatal ("Language ident 0x%lx is not resolvable.\n", (long) nv);
|
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzpool/common/ |
H A D | util.c | 67 show_vdev_stats(const char *desc, const char *ctype, nvlist_t *nv, int indent) argument 87 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); 92 if (nvlist_lookup_uint64_array(nv, ZPOOL_CONFIG_VDEV_STATS, 118 if (nvlist_lookup_nvlist_array(nv, ctype, &child, &children) != 0)
|
/freebsd-9.3-release/contrib/groff/src/utils/afmtodit/ |
H A D | afmtodit.pl | 6292 my $nv = 0; 6345 $nv = hex("0x" . $1); 6346 if ($nv <= 0xD7FF || $nv >= 0xE000) { 6365 $nv = hex("0x" . $1); 6366 if ($nv <= 0xD7FF || ($nv >= 0xE000 && $nv <= 0x10FFFF)) {
|
/freebsd-9.3-release/contrib/libc-vis/ |
H A D | unvis.c | 92 static const struct nv { struct 95 } nv[] = { variable in typeref:struct:nv 209 * Top 8 bits hold the current character in the http 1866 nv string decoding 446 lc = is == 0 ? 0 : nv[ia].name[is - 1]; /* last character */ 451 for (; ia < __arraycount(nv); ia++) { 452 if (is != 0 && nv[ia].name[is - 1] != lc) 454 if (nv[ia].name[is] == uc) 458 if (ia == __arraycount(nv)) 467 *cp = nv[ia].value;
|