/src/sys/external/bsd/libnv/dist/ |
nv.h | 91 void nvlist_destroy(nvlist_t *nvl); 92 int nvlist_error(const nvlist_t *nvl); 93 bool nvlist_empty(const nvlist_t *nvl); 94 int nvlist_flags(const nvlist_t *nvl); 95 void nvlist_set_error(nvlist_t *nvl, int error); 97 nvlist_t *nvlist_clone(const nvlist_t *nvl); 100 void nvlist_dump(const nvlist_t *nvl, int fd); 101 void nvlist_fdump(const nvlist_t *nvl, FILE *fp); 104 size_t nvlist_size(const nvlist_t *nvl); 105 void *nvlist_pack(const nvlist_t *nvl, size_t *sizep) [all...] |
nvlist.c | 119 #define NVLIST_MAGIC 0x6e766c /* "nvl" */ 129 #define NVLIST_ASSERT(nvl) do { \ 130 PJDLOG_ASSERT((nvl) != NULL); \ 131 PJDLOG_ASSERT((nvl)->nvl_magic == NVLIST_MAGIC); \ 153 nvlist_t *nvl; local in function:nvlist_create 157 nvl = nv_malloc(sizeof(*nvl)); 158 if (nvl == NULL) 160 nvl->nvl_error = 0; 161 nvl->nvl_flags = flags 1149 nvlist_t *nvl, *retnvl, *tmpnvl, *array; local in function:nvlist_xunpack 1327 nvlist_t *nvl, *ret; local in function:nvlist_recv [all...] |
dnv.h | 65 bool dnvlist_get_bool(const nvlist_t *nvl, const char *name, bool defval); 66 uint64_t dnvlist_get_number(const nvlist_t *nvl, const char *name, uint64_t defval); 67 const char *dnvlist_get_string(const nvlist_t *nvl, const char *name, const char *defval); 68 const nvlist_t *dnvlist_get_nvlist(const nvlist_t *nvl, const char *name, const nvlist_t *defval); 69 int dnvlist_get_descriptor(const nvlist_t *nvl, const char *name, int defval); 70 const void *dnvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep, const void *defval, size_t defsize); 80 bool dnvlist_take_bool(nvlist_t *nvl, const char *name, bool defval); 81 uint64_t dnvlist_take_number(nvlist_t *nvl, const char *name, uint64_t defval); 82 char *dnvlist_take_string(nvlist_t *nvl, const char *name, char *defval); 83 nvlist_t *dnvlist_take_nvlist(nvlist_t *nvl, const char *name, nvlist_t *defval) [all...] |
dnvlist.c | 72 dnvlist_get_##type(const nvlist_t *nvl, const char *name, ftype defval) \ 75 if (nvlist_exists_##type(nvl, name)) \ 76 return (nvlist_get_##type(nvl, name)); \ 92 dnvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep, 97 if (nvlist_exists_binary(nvl, name)) 98 value = nvlist_get_binary(nvl, name, sizep); 109 dnvlist_take_##type(nvlist_t *nvl, const char *name, ftype defval) \ 112 if (nvlist_exists_##type(nvl, name)) \ 113 return (nvlist_take_##type(nvl, name)); \ 129 dnvlist_take_binary(nvlist_t *nvl, const char *name, size_t *sizep [all...] |
nvlist_impl.h | 51 nvpair_t *nvlist_get_nvpair_parent(const nvlist_t *nvl); 52 const unsigned char *nvlist_unpack_header(nvlist_t *nvl,
|
nv_impl.h | 120 int *nvlist_descriptors(const nvlist_t *nvl, size_t *nitemsp); 121 size_t nvlist_ndescriptors(const nvlist_t *nvl); 122 void nvlist_set_flags(nvlist_t *nvl, int flags); 124 nvpair_t *nvlist_first_nvpair(const nvlist_t *nvl); 125 nvpair_t *nvlist_next_nvpair(const nvlist_t *nvl, const nvpair_t *nvp); 126 nvpair_t *nvlist_prev_nvpair(const nvlist_t *nvl, const nvpair_t *nvp); 128 void nvlist_add_nvpair(nvlist_t *nvl, const nvpair_t *nvp); 130 bool nvlist_move_nvpair(nvlist_t *nvl, nvpair_t *nvp); 132 void nvlist_set_parent(nvlist_t *nvl, nvpair_t *parent); 133 void nvlist_set_array_next(nvlist_t *nvl, nvpair_t *ele) [all...] |
cnvlist.c | 143 nvlist_t *nvl; \ 149 nvl = nvpair_nvlist(cookie); \ 151 nvlist_remove_nvpair(nvl, cookie); \ 171 nvlist_t *nvl; \ 177 nvl = nvpair_nvlist(cookie); \ 179 nvlist_remove_nvpair(nvl, cookie); \ 198 nvlist_t *nvl; local in function:cnvlist_take_binary 202 nvl = nvpair_nvlist(cookie); 204 nvlist_remove_nvpair(nvl, cookie);
|
nv_kern_netbsd.c | 78 nvlist_t *nvl; local in function:nvlist_copyin 94 nvl = nvlist_unpack(buf, len, flags); 96 if (nvl == NULL) { 99 *nvlp = nvl; 104 nvlist_copyout(nvlist_ref_t *nref, const nvlist_t *nvl) 111 buf = nvlist_pack(nvl, &len); 133 nref->flags = nvlist_flags(nvl); 144 nvlist_xfer_ioctl(int fd, unsigned long cmd, const nvlist_t *nvl, 152 if (nvl) { 156 buf = nvlist_pack(nvl, &nref.len) [all...] |
nvpair.c | 222 nvpair_insert(struct nvl_head *head, nvpair_t *nvp, nvlist_t *nvl) 227 PJDLOG_ASSERT((nvlist_flags(nvl) & NV_FLAG_NO_UNIQUE) != 0 || 228 !nvlist_exists(nvl, nvpair_name(nvp))); 231 nvp->nvp_list = nvl; 237 nvlist_t *nvl; local in function:nvpair_remove_nvlist 240 nvl = __DECONST(nvlist_t *, nvpair_get_nvlist(nvp)); 241 PJDLOG_ASSERT(nvl != NULL); 242 nvlist_set_parent(nvl, NULL); 261 nvpair_remove(struct nvl_head *head, nvpair_t *nvp, const nvlist_t *nvl) 265 PJDLOG_ASSERT(nvp->nvp_list == nvl); 1279 nvlist_t *nvl; local in function:nvpair_create_nvlist 2010 nvlist_t *nvl, *prev; local in function:nvpair_append_nvlist_array [all...] |
nvpair_impl.h | 57 void nvpair_insert(struct nvl_head *head, nvpair_t *nvp, nvlist_t *nvl); 58 void nvpair_remove(struct nvl_head *head, nvpair_t *nvp, const nvlist_t *nvl);
|
/src/sys/net/npf/ |
npf_conn.c | 773 npf_conndb_export(npf_t *npf, nvlist_t *nvl) 795 nvlist_append_nvlist_array(nvl, "conn-list", con_nvl); 811 npf_conn_export(npf_t *npf, npf_conn_t *con, nvlist_t *nvl) 821 nvlist_add_number(nvl, "flags", flags); 822 nvlist_add_number(nvl, "proto", con->c_proto); 826 nvlist_add_string(nvl, "ifname", ifname); 828 nvlist_add_binary(nvl, "state", &con->c_state, sizeof(npf_state_t)); 836 nvlist_move_nvlist(nvl, "forw-key", knvl); 839 nvlist_move_nvlist(nvl, "back-key", knvl); 842 nvlist_add_number(nvl, "alen", alen) [all...] |
npf_alg.c | 336 npf_alg_export(npf_t *npf, nvlist_t *nvl) 351 nvlist_append_nvlist_array(nvl, "algs", algdict);
|
npf_rproc.c | 263 npf_rprocset_export(const npf_rprocset_t *rpset, nvlist_t *nvl) 278 nvlist_append_nvlist_array(nvl, "rprocs", rproc);
|
npf_tableset.c | 288 npf_tableset_export(npf_t *npf, const npf_tableset_t *ts, nvlist_t *nvl) 305 nvlist_append_nvlist_array(nvl, "tables", table);
|
/src/lib/libnpf/ |
npf.c | 99 _npf_add_addr(nvlist_t *nvl, const char *name, int af, const npf_addr_t *addr) 110 nvlist_add_binary(nvl, name, addr, sz); 111 return nvlist_error(nvl) == 0; 115 _npf_get_addr(const nvlist_t *nvl, const char *name, npf_addr_t *addr) 120 d = nvlist_get_binary(nvl, name, &sz);
|