Searched refs:nvl (Results 1 - 25 of 64) sorted by relevance

123

/freebsd-11-stable/lib/libnv/tests/
H A Dnvlist_free_test.c50 nvlist_t *nvl; local
54 nvl = nvlist_create(0);
56 nvlist_add_null(nvl, "nvlist/null");
57 nvlist_add_bool(nvl, "nvlist/bool", true);
58 nvlist_add_number(nvl, "nvlist/number", 0);
59 nvlist_add_string(nvl, "nvlist/string", "test");
60 nvlist_add_nvlist(nvl, "nvlist/nvlist", nvl);
61 nvlist_add_descriptor(nvl, "nvlist/descriptor", STDERR_FILENO);
62 nvlist_add_binary(nvl, "nvlis
[all...]
H A Dnvlist_exists_test.c50 nvlist_t *nvl; local
54 nvl = nvlist_create(0);
56 CHECK(!nvlist_exists(nvl, "nvlist/null"));
57 CHECK(!nvlist_exists_null(nvl, "nvlist/null"));
58 CHECK(!nvlist_exists_bool(nvl, "nvlist/null"));
59 CHECK(!nvlist_exists_number(nvl, "nvlist/null"));
60 CHECK(!nvlist_exists_string(nvl, "nvlist/null"));
61 CHECK(!nvlist_exists_nvlist(nvl, "nvlist/null"));
62 CHECK(!nvlist_exists_descriptor(nvl, "nvlist/null"));
63 CHECK(!nvlist_exists_binary(nvl, "nvlis
[all...]
H A Dnvlist_add_test.c52 nvlist_t *nvl; local
56 nvl = nvlist_create(0);
58 CHECK(!nvlist_exists_null(nvl, "nvlist/null"));
59 nvlist_add_null(nvl, "nvlist/null");
60 CHECK(nvlist_error(nvl) == 0);
61 CHECK(nvlist_exists_null(nvl, "nvlist/null"));
63 CHECK(!nvlist_exists_bool(nvl, "nvlist/bool/true"));
64 nvlist_add_bool(nvl, "nvlist/bool/true", true);
65 CHECK(nvlist_error(nvl) == 0);
66 CHECK(nvlist_exists_bool(nvl, "nvlis
[all...]
H A Dnvlist_get_test.c55 nvlist_t *nvl; local
60 nvl = nvlist_create(0);
62 CHECK(!nvlist_exists_bool(nvl, "nvlist/bool/true"));
63 nvlist_add_bool(nvl, "nvlist/bool/true", true);
64 CHECK(nvlist_error(nvl) == 0);
65 CHECK(nvlist_get_bool(nvl, "nvlist/bool/true") == true);
67 CHECK(!nvlist_exists_bool(nvl, "nvlist/bool/false"));
68 nvlist_add_bool(nvl, "nvlist/bool/false", false);
69 CHECK(nvlist_error(nvl) == 0);
70 CHECK(nvlist_get_bool(nvl, "nvlis
[all...]
H A Ddnv_tests.cc39 nvlist_t *nvl; local
43 nvl = nvlist_create(0);
47 nvlist_add_bool(nvl, key, value);
49 ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, key, false), value);
50 ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, "name", false), value);
52 nvlist_destroy(nvl);
58 nvlist_t *nvl; local
62 nvl = nvlist_create(0);
64 ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, key, false), false);
65 ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, "12
78 nvlist_t *nvl; local
97 nvlist_t *nvl; local
116 nvlist_t *nvl; local
137 nvlist_t *nvl; local
161 nvlist_t *nvl; local
182 nvlist_t *nvl; local
210 nvlist_t *nvl; local
231 nvlist_t *nvl; local
272 nvlist_t *nvl; local
291 nvlist_t *nvl; local
303 nvlist_t *nvl; local
316 nvlist_t *nvl; local
335 nvlist_t *nvl; local
347 nvlist_t *nvl; local
360 nvlist_t *nvl; local
384 nvlist_t *nvl; local
400 nvlist_t *nvl; local
417 nvlist_t *nvl; local
440 nvlist_t *nvl, *actual_val; local
454 nvlist_t *nvl; local
479 nvlist_t *nvl; local
505 nvlist_t *nvl; local
524 nvlist_t *nvl; local
[all...]
H A Dnvlist_move_test.c54 nvlist_t *nvl; local
61 nvl = nvlist_create(0);
63 CHECK(!nvlist_exists_string(nvl, "nvlist/string/"));
66 nvlist_move_string(nvl, "nvlist/string/", ptr);
67 CHECK(nvlist_error(nvl) == 0);
68 CHECK(nvlist_exists_string(nvl, "nvlist/string/"));
69 CHECK(ptr == nvlist_get_string(nvl, "nvlist/string/"));
71 CHECK(!nvlist_exists_string(nvl, "nvlist/string/x"));
74 nvlist_move_string(nvl, "nvlist/string/x", ptr);
75 CHECK(nvlist_error(nvl)
[all...]
H A Dcnv_tests.cc47 nvlist_t *nvl; local
53 nvl = nvlist_create(0);
54 ATF_REQUIRE(nvl != NULL);
55 ATF_REQUIRE_EQ(nvlist_error(nvl), 0);
56 ATF_REQUIRE(nvlist_empty(nvl));
62 nvlist_add_bool(nvl, key, value);
63 ATF_REQUIRE_EQ(strcmp(key, nvlist_next(nvl, &type, &cookie)), 0);
64 ATF_REQUIRE_EQ(nvlist_error(nvl), 0);
66 ATF_REQUIRE(!nvlist_empty(nvl));
67 ATF_REQUIRE(nvlist_exists(nvl, ke
81 nvlist_t *nvl; local
116 nvlist_t *nvl; local
150 nvlist_t *nvl, *value; local
219 nvlist_t *nvl; local
251 nvlist_t *nvl; local
295 nvlist_t *nvl; local
337 nvlist_t *nvl; local
379 nvlist_t *nvl; local
420 nvlist_t *nvl; local
503 nvlist_t *nvl; local
551 nvlist_t *nvl; local
594 nvlist_t *nvl; local
637 nvlist_t *nvl; local
684 nvlist_t *nvl, *value, *result; local
756 nvlist_t *nvl; local
808 nvlist_t *nvl; local
860 nvlist_t *nvl; local
913 nvlist_t *nvl; local
993 nvlist_t *nvl; local
1045 nvlist_t *nvl; local
1088 nvlist_t *nvl; local
1131 nvlist_t *nvl; local
1174 nvlist_t *nvl, *value; local
1234 nvlist_t *nvl; local
1283 nvlist_t *nvl; local
1328 nvlist_t *nvl; local
1373 nvlist_t *nvl; local
1416 nvlist_t *nvl; local
[all...]
H A Dnv_tests.cc46 nvlist_t *nvl; local
50 nvl = nvlist_create(0);
52 ATF_REQUIRE(nvl != NULL);
54 ATF_REQUIRE_EQ(nvlist_error(nvl), 0);
55 ATF_REQUIRE(nvlist_empty(nvl));
58 ATF_REQUIRE_EQ(nvlist_next(nvl, &type, &it), static_cast<const char *>(NULL));
60 nvlist_destroy(nvl);
66 nvlist_t *nvl; local
72 nvl = nvlist_create(0);
74 ATF_REQUIRE(nvl !
96 nvlist_t *nvl; local
128 nvlist_t *nvl; local
161 nvlist_t *nvl; local
198 nvlist_t *nvl; local
241 nvlist_t *nvl, *parent; local
257 nvlist_t *nvl; local
302 nvlist_t *nvl, *clone; local
319 nvlist_t *nvl, *clone; local
356 nvlist_t *nvl, *sublist; local
371 verify_test_nvlist(const nvlist_t *nvl) argument
402 nvlist_t *nvl, *clone; local
418 nvlist_t *nvl, *clone; local
434 nvlist_t *nvl, *unpacked; local
457 nvlist_t *nvl, *unpacked; local
489 verify_null(const nvlist_t *nvl, int type) argument
496 verify_number(const nvlist_t *nvl, const char *name, int type, uint64_t value) argument
504 verify_string(const nvlist_t *nvl, const char *name, int type, const char * value) argument
513 verify_nvlist(const nvlist_t *nvl, const char *name, int type) argument
521 verify_binary(const nvlist_t *nvl, const char *name, int type, const void * value, size_t size) argument
538 nvlist_t *nvl, *unpacked, *nvvalue; local
609 nvlist_t *nvl; local
627 nvlist_t *nvl, *unpacked; local
664 nvlist_t *nvl; local
698 nvlist_t *nvl, *parent; local
713 nvlist_t *nvl; local
733 nvlist_t *nvl; local
756 nvlist_t *nvl; local
776 nvlist_t *nvl; local
810 nvlist_t *nvl; local
830 nvlist_t *nvl; local
864 nvlist_t *nvl; local
884 nvlist_t *nvl; local
918 nvlist_t *nvl; local
938 nvlist_t *nvl; local
969 nvlist_t *nvl; local
995 nvlist_t *nvl; local
1036 nvlist_t *nvl; local
1052 nvlist_t *nvl; local
1068 nvlist_t *nvl; local
1084 nvlist_t *nvl; local
1100 nvlist_t *nvl; local
1116 nvlist_t *nvl; local
1132 nvlist_t *nvl; local
1148 nvlist_t *nvl; local
1164 nvlist_t *nvl; local
1180 nvlist_t *nvl; local
1196 nvlist_t *nvl; local
1212 nvlist_t *nvl; local
[all...]
H A Dnvlist_append_test.c53 nvlist_t *nvl, *nvl1, *nvl2, **items; local
59 nvl = nvlist_create(0);
62 nvlist_append_bool_array(nvl, "nvl/bool", i % 2 == 0);
64 CHECK(nvlist_error(nvl) == 0);
65 CHECK(!nvlist_empty(nvl));
66 CHECK(nvlist_exists_bool_array(nvl, "nvl/bool"));
68 bool_result = nvlist_get_bool_array(nvl, "nvl/boo
[all...]
H A Dnv_array_tests.cc53 nvlist_t *nvl; local
58 key = "nvl/bool";
59 nvl = nvlist_create(0);
60 ATF_REQUIRE(nvl != NULL);
61 ATF_REQUIRE(nvlist_empty(nvl));
62 ATF_REQUIRE(!nvlist_exists_string_array(nvl, key));
67 nvlist_add_bool_array(nvl, key, testbool, 16);
68 ATF_REQUIRE_EQ(nvlist_error(nvl), 0);
69 ATF_REQUIRE(!nvlist_empty(nvl));
70 ATF_REQUIRE(nvlist_exists_bool_array(nvl, ke
98 nvlist_t *nvl; local
156 nvlist_t *nvl; local
214 nvlist_t *nvl; local
260 nvlist_t *nvl; local
338 const nvlist_t *nvl; local
461 nvlist_t *nvl; local
498 nvlist_t *nvl; local
541 nvlist_t *nvl; local
591 nvlist_t *nvl; local
628 nvlist_t *nvl; local
665 nvlist_t *nvl; local
731 nvlist_t *nvl, *nvladd[1], **nvlmove; local
770 nvlist_t *nvl, *test[5], *nasted; local
838 nvlist_t *nvl, *test[5], *nasted; local
911 nvlist_t *nvl, *unpacked; local
955 nvlist_t *nvl, *unpacked; local
997 nvlist_t *nvl; local
1061 nvlist_t *nvl, *unpacked; local
1105 nvlist_t *nvl; local
[all...]
H A Dnvlist_send_recv_test.c59 nvlist_t *nvl; local
62 nvl = nvlist_create(0);
65 nvlist_add_bool(nvl, "nvlist/bool/true", true);
66 nvlist_add_bool(nvl, "nvlist/bool/false", false);
67 nvlist_add_number(nvl, "nvlist/number/0", 0);
68 nvlist_add_number(nvl, "nvlist/number/1", 1);
69 nvlist_add_number(nvl, "nvlist/number/-1", -1);
70 nvlist_add_number(nvl, "nvlist/number/UINT64_MAX", UINT64_MAX);
71 nvlist_add_number(nvl, "nvlist/number/INT64_MIN", INT64_MIN);
72 nvlist_add_number(nvl, "nvlis
90 nvlist_t *nvl; local
[all...]
/freebsd-11-stable/sys/sys/
H A Dnv.h85 void nvlist_destroy(nvlist_t *nvl);
86 int nvlist_error(const nvlist_t *nvl);
87 bool nvlist_empty(const nvlist_t *nvl);
88 int nvlist_flags(const nvlist_t *nvl);
89 void nvlist_set_error(nvlist_t *nvl, int error);
91 nvlist_t *nvlist_clone(const nvlist_t *nvl);
94 void nvlist_dump(const nvlist_t *nvl, int fd);
95 void nvlist_fdump(const nvlist_t *nvl, FILE *fp);
98 size_t nvlist_size(const nvlist_t *nvl);
99 void *nvlist_pack(const nvlist_t *nvl, size_
[all...]
H A Ddnv.h61 bool dnvlist_get_bool(const nvlist_t *nvl, const char *name, bool defval);
62 uint64_t dnvlist_get_number(const nvlist_t *nvl, const char *name, uint64_t defval);
63 const char *dnvlist_get_string(const nvlist_t *nvl, const char *name, const char *defval);
64 const nvlist_t *dnvlist_get_nvlist(const nvlist_t *nvl, const char *name, const nvlist_t *defval);
65 int dnvlist_get_descriptor(const nvlist_t *nvl, const char *name, int defval);
66 const void *dnvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep, const void *defval, size_t defsize);
76 bool dnvlist_take_bool(nvlist_t *nvl, const char *name, bool defval);
77 uint64_t dnvlist_take_number(nvlist_t *nvl, const char *name, uint64_t defval);
78 char *dnvlist_take_string(nvlist_t *nvl, const char *name, char *defval);
79 nvlist_t *dnvlist_take_nvlist(nvlist_t *nvl, cons
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/nvpair/
H A Dopensolaris_fnvpair.c56 nvlist_t *nvl; local
57 VERIFY0(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP));
58 return (nvl);
62 fnvlist_free(nvlist_t *nvl) argument
64 nvlist_free(nvl);
68 fnvlist_size(nvlist_t *nvl) argument
71 VERIFY0(nvlist_size(nvl, &size, NV_ENCODE_NATIVE));
80 fnvlist_pack(nvlist_t *nvl, size_t *sizep) argument
83 VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_NATIVE,
108 fnvlist_dup(nvlist_t *nvl) argument
122 fnvlist_num_pairs(nvlist_t *nvl) argument
134 fnvlist_add_boolean(nvlist_t *nvl, const char *name) argument
140 fnvlist_add_boolean_value(nvlist_t *nvl, const char *name, boolean_t val) argument
146 fnvlist_add_byte(nvlist_t *nvl, const char *name, uchar_t val) argument
152 fnvlist_add_int8(nvlist_t *nvl, const char *name, int8_t val) argument
158 fnvlist_add_uint8(nvlist_t *nvl, const char *name, uint8_t val) argument
164 fnvlist_add_int16(nvlist_t *nvl, const char *name, int16_t val) argument
170 fnvlist_add_uint16(nvlist_t *nvl, const char *name, uint16_t val) argument
176 fnvlist_add_int32(nvlist_t *nvl, const char *name, int32_t val) argument
182 fnvlist_add_uint32(nvlist_t *nvl, const char *name, uint32_t val) argument
188 fnvlist_add_int64(nvlist_t *nvl, const char *name, int64_t val) argument
194 fnvlist_add_uint64(nvlist_t *nvl, const char *name, uint64_t val) argument
200 fnvlist_add_string(nvlist_t *nvl, const char *name, const char *val) argument
206 fnvlist_add_nvlist(nvlist_t *nvl, const char *name, nvlist_t *val) argument
212 fnvlist_add_nvpair(nvlist_t *nvl, nvpair_t *pair) argument
218 fnvlist_add_boolean_array(nvlist_t *nvl, const char *name, boolean_t *val, uint_t n) argument
225 fnvlist_add_byte_array(nvlist_t *nvl, const char *name, uchar_t *val, uint_t n) argument
231 fnvlist_add_int8_array(nvlist_t *nvl, const char *name, int8_t *val, uint_t n) argument
237 fnvlist_add_uint8_array(nvlist_t *nvl, const char *name, uint8_t *val, uint_t n) argument
243 fnvlist_add_int16_array(nvlist_t *nvl, const char *name, int16_t *val, uint_t n) argument
249 fnvlist_add_uint16_array(nvlist_t *nvl, const char *name, uint16_t *val, uint_t n) argument
256 fnvlist_add_int32_array(nvlist_t *nvl, const char *name, int32_t *val, uint_t n) argument
262 fnvlist_add_uint32_array(nvlist_t *nvl, const char *name, uint32_t *val, uint_t n) argument
269 fnvlist_add_int64_array(nvlist_t *nvl, const char *name, int64_t *val, uint_t n) argument
275 fnvlist_add_uint64_array(nvlist_t *nvl, const char *name, uint64_t *val, uint_t n) argument
282 fnvlist_add_string_array(nvlist_t *nvl, const char *name, char * const *val, uint_t n) argument
289 fnvlist_add_nvlist_array(nvlist_t *nvl, const char *name, nvlist_t **val, uint_t n) argument
296 fnvlist_remove(nvlist_t *nvl, const char *name) argument
302 fnvlist_remove_nvpair(nvlist_t *nvl, nvpair_t *pair) argument
308 fnvlist_lookup_nvpair(nvlist_t *nvl, const char *name) argument
317 fnvlist_lookup_boolean(nvlist_t *nvl, const char *name) argument
323 fnvlist_lookup_boolean_value(nvlist_t *nvl, const char *name) argument
331 fnvlist_lookup_byte(nvlist_t *nvl, const char *name) argument
339 fnvlist_lookup_int8(nvlist_t *nvl, const char *name) argument
347 fnvlist_lookup_int16(nvlist_t *nvl, const char *name) argument
355 fnvlist_lookup_int32(nvlist_t *nvl, const char *name) argument
363 fnvlist_lookup_int64(nvlist_t *nvl, const char *name) argument
371 fnvlist_lookup_uint8_t(nvlist_t *nvl, const char *name) argument
379 fnvlist_lookup_uint16(nvlist_t *nvl, const char *name) argument
387 fnvlist_lookup_uint32(nvlist_t *nvl, const char *name) argument
395 fnvlist_lookup_uint64(nvlist_t *nvl, const char *name) argument
403 fnvlist_lookup_string(nvlist_t *nvl, const char *name) argument
411 fnvlist_lookup_nvlist(nvlist_t *nvl, const char *name) argument
[all...]
H A Dopensolaris_nvpair.c135 static int nvlist_add_common(nvlist_t *nvl, const char *name, data_type_t type,
186 nvlist_lookup_nv_alloc(nvlist_t *nvl) argument
190 if (nvl == NULL ||
191 (priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv) == NULL)
325 nvt_lookup_name_type(nvlist_t *nvl, const char *name, data_type_t type) argument
327 nvpriv_t *priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv;
357 nvt_lookup_name(nvlist_t *nvl, const char *name) argument
359 return (nvt_lookup_name_type(nvl, name, DATA_TYPE_DONTCARE));
463 nvt_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp) argument
465 nvpriv_t *priv = (nvpriv_t *)(uintptr_t)nvl
501 nvt_add_nvpair(nvlist_t *nvl, nvpair_t *nvp) argument
547 nvlist_init(nvlist_t *nvl, uint32_t nvflag, nvpriv_t *priv) argument
557 nvlist_nvflag(nvlist_t *nvl) argument
603 nvp_buf_alloc(nvlist_t *nvl, size_t len) argument
628 nvp_buf_free(nvlist_t *nvl, nvpair_t *nvp) argument
640 nvp_buf_link(nvlist_t *nvl, nvpair_t *nvp) argument
659 nvp_buf_unlink(nvlist_t *nvl, nvpair_t *nvp) argument
852 nvlist_free(nvlist_t *nvl) argument
883 nvlist_contains_nvp(nvlist_t *nvl, nvpair_t *nvp) argument
903 nvlist_dup(nvlist_t *nvl, nvlist_t **nvlp, int kmflag) argument
914 nvlist_xdup(nvlist_t *nvl, nvlist_t **nvlp, nv_alloc_t *nva) argument
937 nvlist_remove_all(nvlist_t *nvl, const char *name) argument
957 nvlist_remove(nvlist_t *nvl, const char *name, data_type_t type) argument
970 nvlist_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp) argument
1110 nvlist_copy_embedded(nvlist_t *nvl, nvlist_t *onvl, nvlist_t *emb_nvl) argument
1133 nvlist_add_common(nvlist_t *nvl, const char *name, data_type_t type, uint_t nelem, const void *data) argument
1268 nvlist_add_boolean(nvlist_t *nvl, const char *name) argument
1274 nvlist_add_boolean_value(nvlist_t *nvl, const char *name, boolean_t val) argument
1280 nvlist_add_byte(nvlist_t *nvl, const char *name, uchar_t val) argument
1286 nvlist_add_int8(nvlist_t *nvl, const char *name, int8_t val) argument
1292 nvlist_add_uint8(nvlist_t *nvl, const char *name, uint8_t val) argument
1298 nvlist_add_int16(nvlist_t *nvl, const char *name, int16_t val) argument
1304 nvlist_add_uint16(nvlist_t *nvl, const char *name, uint16_t val) argument
1310 nvlist_add_int32(nvlist_t *nvl, const char *name, int32_t val) argument
1316 nvlist_add_uint32(nvlist_t *nvl, const char *name, uint32_t val) argument
1322 nvlist_add_int64(nvlist_t *nvl, const char *name, int64_t val) argument
1328 nvlist_add_uint64(nvlist_t *nvl, const char *name, uint64_t val) argument
1335 nvlist_add_double(nvlist_t *nvl, const char *name, double val) argument
1342 nvlist_add_string(nvlist_t *nvl, const char *name, const char *val) argument
1348 nvlist_add_boolean_array(nvlist_t *nvl, const char *name, boolean_t *a, uint_t n) argument
1355 nvlist_add_byte_array(nvlist_t *nvl, const char *name, uchar_t *a, uint_t n) argument
1361 nvlist_add_int8_array(nvlist_t *nvl, const char *name, int8_t *a, uint_t n) argument
1367 nvlist_add_uint8_array(nvlist_t *nvl, const char *name, uint8_t *a, uint_t n) argument
1373 nvlist_add_int16_array(nvlist_t *nvl, const char *name, int16_t *a, uint_t n) argument
1379 nvlist_add_uint16_array(nvlist_t *nvl, const char *name, uint16_t *a, uint_t n) argument
1385 nvlist_add_int32_array(nvlist_t *nvl, const char *name, int32_t *a, uint_t n) argument
1391 nvlist_add_uint32_array(nvlist_t *nvl, const char *name, uint32_t *a, uint_t n) argument
1397 nvlist_add_int64_array(nvlist_t *nvl, const char *name, int64_t *a, uint_t n) argument
1403 nvlist_add_uint64_array(nvlist_t *nvl, const char *name, uint64_t *a, uint_t n) argument
1409 nvlist_add_string_array(nvlist_t *nvl, const char *name, char *const *a, uint_t n) argument
1416 nvlist_add_hrtime(nvlist_t *nvl, const char *name, hrtime_t val) argument
1422 nvlist_add_nvlist(nvlist_t *nvl, const char *name, nvlist_t *val) argument
1428 nvlist_add_nvlist_array(nvlist_t *nvl, const char *name, nvlist_t **a, uint_t n) argument
1435 nvlist_next_nvpair(nvlist_t *nvl, nvpair_t *nvp) argument
1464 nvlist_prev_nvpair(nvlist_t *nvl, nvpair_t *nvp) argument
1488 nvlist_empty(nvlist_t *nvl) argument
1608 nvlist_lookup_common(nvlist_t *nvl, const char *name, data_type_t type, uint_t *nelem, void *data) argument
1625 nvlist_lookup_boolean(nvlist_t *nvl, const char *name) argument
1631 nvlist_lookup_boolean_value(nvlist_t *nvl, const char *name, boolean_t *val) argument
1638 nvlist_lookup_byte(nvlist_t *nvl, const char *name, uchar_t *val) argument
1644 nvlist_lookup_int8(nvlist_t *nvl, const char *name, int8_t *val) argument
1650 nvlist_lookup_uint8(nvlist_t *nvl, const char *name, uint8_t *val) argument
1656 nvlist_lookup_int16(nvlist_t *nvl, const char *name, int16_t *val) argument
1662 nvlist_lookup_uint16(nvlist_t *nvl, const char *name, uint16_t *val) argument
1668 nvlist_lookup_int32(nvlist_t *nvl, const char *name, int32_t *val) argument
1674 nvlist_lookup_uint32(nvlist_t *nvl, const char *name, uint32_t *val) argument
1680 nvlist_lookup_int64(nvlist_t *nvl, const char *name, int64_t *val) argument
1686 nvlist_lookup_uint64(nvlist_t *nvl, const char *name, uint64_t *val) argument
1693 nvlist_lookup_double(nvlist_t *nvl, const char *name, double *val) argument
1700 nvlist_lookup_string(nvlist_t *nvl, const char *name, char **val) argument
1706 nvlist_lookup_nvlist(nvlist_t *nvl, const char *name, nvlist_t **val) argument
1712 nvlist_lookup_boolean_array(nvlist_t *nvl, const char *name, boolean_t **a, uint_t *n) argument
1720 nvlist_lookup_byte_array(nvlist_t *nvl, const char *name, uchar_t **a, uint_t *n) argument
1727 nvlist_lookup_int8_array(nvlist_t *nvl, const char *name, int8_t **a, uint_t *n) argument
1733 nvlist_lookup_uint8_array(nvlist_t *nvl, const char *name, uint8_t **a, uint_t *n) argument
1740 nvlist_lookup_int16_array(nvlist_t *nvl, const char *name, int16_t **a, uint_t *n) argument
1747 nvlist_lookup_uint16_array(nvlist_t *nvl, const char *name, uint16_t **a, uint_t *n) argument
1754 nvlist_lookup_int32_array(nvlist_t *nvl, const char *name, int32_t **a, uint_t *n) argument
1761 nvlist_lookup_uint32_array(nvlist_t *nvl, const char *name, uint32_t **a, uint_t *n) argument
1768 nvlist_lookup_int64_array(nvlist_t *nvl, const char *name, int64_t **a, uint_t *n) argument
1775 nvlist_lookup_uint64_array(nvlist_t *nvl, const char *name, uint64_t **a, uint_t *n) argument
1782 nvlist_lookup_string_array(nvlist_t *nvl, const char *name, char ***a, uint_t *n) argument
1789 nvlist_lookup_nvlist_array(nvlist_t *nvl, const char *name, nvlist_t ***a, uint_t *n) argument
1796 nvlist_lookup_hrtime(nvlist_t *nvl, const char *name, hrtime_t *val) argument
1802 nvlist_lookup_pairs(nvlist_t *nvl, int flag, ...) argument
1885 nvlist_lookup_nvpair_ei_sep(nvlist_t *nvl, const char *name, const char sep, nvpair_t **ret, int *ip, char **ep) argument
2052 nvlist_lookup_nvpair(nvlist_t *nvl, const char *name, nvpair_t **ret) argument
2062 nvlist_lookup_nvpair_embedded_index(nvlist_t *nvl, const char *name, nvpair_t **ret, int *ip, char **ep) argument
2069 nvlist_exists(nvlist_t *nvl, const char *name) argument
2251 nvlist_add_nvpair(nvlist_t *nvl, nvpair_t *nvp) argument
2268 nvlist_merge(nvlist_t *dst, nvlist_t *nvl, int flag) argument
2331 nvs_encode_pairs(nvstream_t *nvs, nvlist_t *nvl) argument
2347 nvs_decode_pairs(nvstream_t *nvs, nvlist_t *nvl) argument
2391 nvs_getsize_pairs(nvstream_t *nvs, nvlist_t *nvl, size_t *buflen) argument
2414 nvs_operation(nvstream_t *nvs, nvlist_t *nvl, size_t *buflen) argument
2550 nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding, int nvs_op) argument
2633 nvlist_size(nvlist_t *nvl, size_t *size, int encoding) argument
2643 nvlist_pack(nvlist_t *nvl, char **bufp, size_t *buflen, int encoding, int kmflag) argument
2655 nvlist_xpack(nvlist_t *nvl, char **bufp, size_t *buflen, int encoding, nv_alloc_t *nva) argument
2719 nvlist_t *nvl; local
2816 nvs_native_nvlist(nvstream_t *nvs, nvlist_t *nvl, size_t *size) argument
3097 nvs_native(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen) argument
3173 nvs_xdr_nvlist(nvstream_t *nvs, nvlist_t *nvl, size_t *size) argument
3584 nvs_xdr(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen) argument
[all...]
/freebsd-11-stable/sys/contrib/libnv/
H A Dnvlist.c96 #define NVLIST_MAGIC 0x6e766c /* "nvl" */
106 #define NVLIST_ASSERT(nvl) do { \
107 PJDLOG_ASSERT((nvl) != NULL); \
108 PJDLOG_ASSERT((nvl)->nvl_magic == NVLIST_MAGIC); \
130 nvlist_t *nvl; local
134 nvl = nv_malloc(sizeof(*nvl));
135 if (nvl == NULL)
137 nvl->nvl_error = 0;
138 nvl
148 nvlist_destroy(nvlist_t *nvl) argument
174 nvlist_set_error(nvlist_t *nvl, int error) argument
188 nvlist_error(const nvlist_t *nvl) argument
200 nvlist_get_nvpair_parent(const nvlist_t *nvl) argument
209 nvlist_get_parent(const nvlist_t *nvl, void **cookiep) argument
225 nvlist_set_parent(nvlist_t *nvl, nvpair_t *parent) argument
234 nvlist_set_array_next(nvlist_t *nvl, nvpair_t *ele) argument
250 nvlist_in_array(const nvlist_t *nvl) argument
259 nvlist_get_array_next(const nvlist_t *nvl) argument
273 nvlist_get_pararr(const nvlist_t *nvl, void **cookiep) argument
288 nvlist_empty(const nvlist_t *nvl) argument
298 nvlist_flags(const nvlist_t *nvl) argument
308 nvlist_set_flags(nvlist_t *nvl, int flags) argument
326 nvlist_find(const nvlist_t *nvl, int type, const char *name) argument
356 nvlist_exists_type(const nvlist_t *nvl, const char *name, int type) argument
368 nvlist_free_type(nvlist_t *nvl, const char *name, int type) argument
385 nvlist_clone(const nvlist_t *nvl) argument
414 nvlist_dump_error_check(const nvlist_t *nvl, int fd, int level) argument
430 nvlist_dump(const nvlist_t *nvl, int fd) argument
619 nvlist_fdump(const nvlist_t *nvl, FILE *fp) argument
631 nvlist_size(const nvlist_t *nvl) argument
709 nvlist_xdescriptors(const nvlist_t *nvl, int *descs) argument
768 nvlist_descriptors(const nvlist_t *nvl, size_t *nitemsp) argument
787 nvlist_ndescriptors(const nvlist_t *nvl) argument
844 nvlist_pack_header(const nvlist_t *nvl, unsigned char *ptr, size_t *leftp) argument
867 nvlist_xpack(const nvlist_t *nvl, int64_t *fdidxp, size_t *sizep) argument
1023 nvlist_pack(const nvlist_t *nvl, size_t *sizep) argument
1068 nvlist_unpack_header(nvlist_t *nvl, const unsigned char *ptr, size_t nfds, bool *isbep, size_t *leftp) argument
1113 nvlist_t *nvl, *retnvl, *tmpnvl, *array; local
1246 nvlist_send(int sock, const nvlist_t *nvl) argument
1291 nvlist_t *nvl, *ret; local
1345 nvlist_xfer(int sock, nvlist_t *nvl, int flags) argument
1358 nvlist_first_nvpair(const nvlist_t *nvl) argument
1398 nvlist_next(const nvlist_t *nvl, int *typep, void **cookiep) argument
1418 nvlist_exists(const nvlist_t *nvl, const char *name) argument
1479 nvlist_add_stringf(nvlist_t *nvl, const char *name, const char *valuefmt, ...) argument
1489 nvlist_add_stringv(nvlist_t *nvl, const char *name, const char *valuefmt, va_list valueap) argument
1509 nvlist_add_null(nvlist_t *nvl, const char *name) argument
1528 nvlist_add_binary(nvlist_t *nvl, const char *name, const void *value, size_t size) argument
1666 nvlist_move_string(nvlist_t *nvl, const char *name, char *value) argument
1686 nvlist_move_nvlist(nvlist_t *nvl, const char *name, nvlist_t *value) argument
1708 nvlist_move_descriptor(nvlist_t *nvl, const char *name, int value) argument
1729 nvlist_move_binary(nvlist_t *nvl, const char *name, void *value, size_t size) argument
1749 nvlist_move_bool_array(nvlist_t *nvl, const char *name, bool *value, size_t nitems) argument
1770 nvlist_move_string_array(nvlist_t *nvl, const char *name, char **value, size_t nitems) argument
1796 nvlist_move_nvlist_array(nvlist_t *nvl, const char *name, nvlist_t **value, size_t nitems) argument
1824 nvlist_move_number_array(nvlist_t *nvl, const char *name, uint64_t *value, size_t nitems) argument
1846 nvlist_move_descriptor_array(nvlist_t *nvl, const char *name, int *value, size_t nitems) argument
1874 nvlist_get_nvpair(const nvlist_t *nvl, const char *name) argument
2005 nvlist_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp) argument
2016 nvlist_free(nvlist_t *nvl, const char *name) argument
[all...]
H A Ddnvlist.c57 dnvlist_get_##type(const nvlist_t *nvl, const char *name, ftype defval) \
60 if (nvlist_exists_##type(nvl, name)) \
61 return (nvlist_get_##type(nvl, name)); \
77 dnvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep,
82 if (nvlist_exists_binary(nvl, name))
83 value = nvlist_get_binary(nvl, name, sizep);
94 dnvlist_take_##type(nvlist_t *nvl, const char *name, ftype defval) \
97 if (nvlist_exists_##type(nvl, name)) \
98 return (nvlist_take_##type(nvl, name)); \
114 dnvlist_take_binary(nvlist_t *nvl, cons
[all...]
H A Dnvlist_impl.h43 nvpair_t *nvlist_get_nvpair_parent(const nvlist_t *nvl);
44 const unsigned char *nvlist_unpack_header(nvlist_t *nvl,
/freebsd-11-stable/lib/libcasper/services/cap_random/
H A Dcap_random.c51 nvlist_t *nvl; local
60 nvl = nvlist_create(0);
61 nvlist_add_string(nvl, "cmd", "generate");
62 nvlist_add_number(nvl, "size",
64 nvl = cap_xfer_nvlist(chan, nvl, 0);
65 if (nvl == NULL)
67 if (nvlist_get_number(nvl, "error") != 0) {
68 errno = (int)nvlist_get_number(nvl, "error");
69 nvlist_destroy(nvl);
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs_core/common/
H A Dlibzfs_core_compat.c35 nvlist_t *nvl = NULL; local
53 nvlist_lookup_nvlist(*source, "props", &nvl);
54 *source = nvl;
59 nvlist_lookup_nvlist(*source, "props", &nvl);
61 *source = nvl;
64 nvl = fnvlist_lookup_nvlist(*source, "snaps");
65 pair = nvlist_next_nvpair(nvl, NULL);
74 if (!error && nvlist_next_nvpair(nvl, pair) != NULL)
76 nvlist_free(nvl);
77 nvl
173 nvlist_t *nvl; local
[all...]
/freebsd-11-stable/lib/libcasper/services/cap_pwd/
H A Dcap_pwd.c75 passwd_unpack_string(const nvlist_t *nvl, const char *fieldname, char **fieldp, argument
81 str = nvlist_get_string(nvl, fieldname);
93 passwd_unpack(const nvlist_t *nvl, struct passwd *pwd, char *buffer, argument
98 if (!nvlist_exists_string(nvl, "pw_name"))
103 error = passwd_unpack_string(nvl, "pw_name", &pwd->pw_name, &buffer,
107 pwd->pw_uid = (uid_t)nvlist_get_number(nvl, "pw_uid");
108 pwd->pw_gid = (gid_t)nvlist_get_number(nvl, "pw_gid");
109 pwd->pw_change = (time_t)nvlist_get_number(nvl, "pw_change");
110 error = passwd_unpack_string(nvl, "pw_passwd", &pwd->pw_passwd, &buffer,
114 error = passwd_unpack_string(nvl, "pw_clas
141 nvlist_t *nvl; local
277 nvlist_t *nvl; local
298 nvlist_t *nvl; local
323 nvlist_t *limits, *nvl; local
345 nvlist_t *limits, *nvl; local
541 pwd_pack(const nvlist_t *limits, const struct passwd *pwd, nvlist_t *nvl) argument
[all...]
/freebsd-11-stable/lib/libcasper/libcasper/
H A Dlibcasper.c157 nvlist_t *nvl; local
163 nvl = nvlist_create(0);
164 nvlist_add_string(nvl, "cmd", "clone");
165 nvl = cap_xfer_nvlist(chan, nvl, 0);
166 if (nvl == NULL)
168 if (nvlist_get_number(nvl, "error") != 0) {
169 errno = (int)nvlist_get_number(nvl, "error");
170 nvlist_destroy(nvl);
173 newsock = nvlist_take_descriptor(nvl, "soc
261 cap_send_nvlist(const cap_channel_t *chan, const nvlist_t *nvl) argument
281 cap_xfer_nvlist(const cap_channel_t *chan, nvlist_t *nvl, int flags) argument
294 nvlist_t *nvl; local
[all...]
H A Dzygote.c57 nvlist_t *nvl; local
66 nvl = nvlist_create(0);
67 nvlist_add_number(nvl, "func", (uint64_t)(uintptr_t)func);
68 nvl = nvlist_xfer(zygote_sock, nvl, 0);
69 if (nvl == NULL)
71 if (nvlist_exists_number(nvl, "error")) {
72 error = (int)nvlist_get_number(nvl, "error");
73 nvlist_destroy(nvl);
78 *chanfdp = nvlist_take_descriptor(nvl, "chanf
[all...]
/freebsd-11-stable/lib/libcasper/services/cap_grp/
H A Dcap_grp.c75 group_unpack_string(const nvlist_t *nvl, const char *fieldname, char **fieldp, argument
81 str = nvlist_get_string(nvl, fieldname);
93 group_unpack_members(const nvlist_t *nvl, char ***fieldp, char **bufferp, argument
102 if (!nvlist_exists_number(nvl, "gr_nmem")) {
114 nmem = (size_t)nvlist_get_number(nvl, "gr_nmem");
119 mem = dnvlist_get_string(nvl, nvlname, NULL);
133 mem = nvlist_get_string(nvl, nvlname);
150 group_unpack(const nvlist_t *nvl, struct group *grp, char *buffer, argument
155 if (!nvlist_exists_string(nvl, "gr_name"))
160 error = group_unpack_string(nvl, "gr_nam
181 nvlist_t *nvl; local
317 nvlist_t *nvl; local
338 nvlist_t *nvl; local
358 nvlist_t *nvl; local
369 nvlist_t *limits, *nvl; local
391 nvlist_t *limits, *nvl; local
586 grp_pack(const nvlist_t *limits, const struct group *grp, nvlist_t *nvl) argument
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/lib/pyzfs/common/
H A Dioctl.c75 nvl2py(nvlist_t *nvl) argument
82 for (nvp = nvlist_next_nvpair(nvl, NULL); nvp;
83 nvp = nvlist_next_nvpair(nvl, nvp)) {
132 nvlist_t *nvl; local
142 err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0);
149 nvlist_free(nvl);
155 err = nvlist_add_nvlist(nvl, keystr, valnvl);
158 err = nvlist_add_boolean(nvl, keystr);
161 err = nvlist_add_string(nvl, keystr, valstr);
164 err = nvlist_add_uint64(nvl, keyst
188 add_ds_props(zfs_cmd_t *zc, PyObject *nvl) argument
213 nvlist_t *nvl; local
237 PyObject *nvl; local
273 PyObject *nvl; local
294 PyObject *nvl; local
316 nvlist_t *nvl; local
353 PyObject *nvl; local
[all...]

Completed in 199 milliseconds

123