| /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 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 1327 nvlist_t *nvl, *ret; local [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 202 nvl = nvpair_nvlist(cookie); 204 nvlist_remove_nvpair(nvl, cookie);
|
| nv_kern_netbsd.c | 78 nvlist_t *nvl; local 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 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 2010 nvlist_t *nvl, *prev; local [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/external/cddl/osnet/dist/common/nvpair/ |
| fnvpair.c | 56 nvlist_t *nvl; local 57 VERIFY0(nvlist_alloc(&nvl, NV_UNIQUE_NAME, KM_SLEEP)); 58 return (nvl); 62 fnvlist_free(nvlist_t *nvl) 64 nvlist_free(nvl); 68 fnvlist_size(nvlist_t *nvl) 71 VERIFY0(nvlist_size(nvl, &size, NV_ENCODE_NATIVE)); 80 fnvlist_pack(nvlist_t *nvl, size_t *sizep) 83 VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_NATIVE, 108 fnvlist_dup(nvlist_t *nvl) [all...] |
| nvpair.c | 136 static int nvlist_add_common(nvlist_t *nvl, const char *name, data_type_t type, 184 nvlist_lookup_nv_alloc(nvlist_t *nvl) 188 if (nvl == NULL || 189 (priv = (nvpriv_t *)(uintptr_t)nvl->nvl_priv) == NULL) 260 nvlist_init(nvlist_t *nvl, uint32_t nvflag, nvpriv_t *priv) 262 nvl->nvl_version = NV_VERSION; 263 nvl->nvl_nvflag = nvflag & (NV_UNIQUE_NAME|NV_UNIQUE_NAME_TYPE); 264 nvl->nvl_priv = (uint64_t)(uintptr_t)priv; 265 nvl->nvl_flag = 0; 266 nvl->nvl_pad = 0 2426 nvlist_t *nvl; local [all...] |
| /src/external/cddl/osnet/dist/lib/libzfs_core/common/ |
| libzfs_core_compat.c | 35 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 = NULL 173 nvlist_t *nvl; local [all...] |
| /src/external/cddl/osnet/dist/lib/pyzfs/common/ |
| ioctl.c | 75 nvl2py(nvlist_t *nvl) 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, keystr, valint) 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...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| spa_history.c | 202 nvlist_t *nvl = arg; local 238 fnvlist_add_uint64(nvl, ZPOOL_HIST_TIME, gethrestime_sec()); 240 fnvlist_add_string(nvl, ZPOOL_HIST_HOST, utsname.nodename); 242 if (nvlist_exists(nvl, ZPOOL_HIST_CMD)) { 244 fnvlist_lookup_string(nvl, ZPOOL_HIST_CMD)); 245 } else if (nvlist_exists(nvl, ZPOOL_HIST_INT_NAME)) { 246 if (nvlist_exists(nvl, ZPOOL_HIST_DSNAME)) { 248 fnvlist_lookup_uint64(nvl, ZPOOL_HIST_TXG), 249 fnvlist_lookup_string(nvl, ZPOOL_HIST_INT_NAME), 250 fnvlist_lookup_string(nvl, ZPOOL_HIST_DSNAME) 293 nvlist_t *nvl = fnvlist_alloc(); local 471 spa_history_log_sync, nvl, 0, ZFS_SPACE_CHECK_NONE, tx); local 507 nvlist_t *nvl = fnvlist_alloc(); local 526 nvlist_t *nvl = fnvlist_alloc(); local [all...] |
| spa_config.c | 147 spa_config_clean(nvlist_t *nvl) 153 if (nvlist_lookup_nvlist_array(nvl, ZPOOL_CONFIG_CHILDREN, &child, 159 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0) 162 nvlist_remove(nvl, ZPOOL_CONFIG_VDEV_STATS, DATA_TYPE_UINT64_ARRAY); 163 nvlist_remove(nvl, ZPOOL_CONFIG_SCAN_STATS, DATA_TYPE_UINT64_ARRAY); 167 spa_config_write(spa_config_dirent_t *dp, nvlist_t *nvl) 179 if (nvl == NULL) { 187 buf = fnvlist_pack(nvl, &buflen); 228 nvlist_t *nvl; local 250 * Iterate over all pools, adding any matching pools to 'nvl' [all...] |
| dsl_prop.c | 771 nvlist_t *nvl = fnvlist_alloc(); local 774 fnvlist_add_uint64(nvl, propname, value); 775 error = dsl_props_set(dsname, source, nvl); 776 fnvlist_free(nvl); 784 nvlist_t *nvl = fnvlist_alloc(); local 787 fnvlist_add_string(nvl, propname, value); 788 error = dsl_props_set(dsname, source, nvl); 789 fnvlist_free(nvl); 797 nvlist_t *nvl = fnvlist_alloc(); local 800 fnvlist_add_boolean(nvl, propname) [all...] |
| /src/external/cddl/osnet/dist/lib/libnvpair/ |
| libnvpair.c | 116 #define RENDER(pctl, type, nvl, name, val) \ 121 CUSTPRTOPARG(pctl, type), nvl, name, val); \ 125 DFLTPRTOPARG(pctl, type), nvl, name, val); \ 130 #define ARENDER(pctl, type, nvl, name, arrp, count) \ 135 CUSTPRTOPARG(pctl, type), nvl, name, arrp, count); \ 139 DFLTPRTOPARG(pctl, type), nvl, name, arrp, count); \ 192 nvlist_t *nvl, const char *name, vtype value) \ 196 NOTE(ARGUNUSED(nvl)) \ 225 nvlist_t *nvl, const char *name, vtype *valuep, uint_t count) \ 230 NOTE(ARGUNUSED(nvl)) \ [all...] |
| /src/external/cddl/osnet/dist/uts/common/sys/ |
| nvpair.h | 123 #define NVL_VERSION(nvl) ((nvl)->nvl_version) 124 #define NVL_SIZE(nvl) ((nvl)->nvl_size) 125 #define NVL_FLAG(nvl) ((nvl)->nvl_flag) 320 nvpair_t *fnvlist_lookup_nvpair(nvlist_t *nvl, const char *name); 321 boolean_t fnvlist_lookup_boolean(nvlist_t *nvl, const char *name); 322 boolean_t fnvlist_lookup_boolean_value(nvlist_t *nvl, const char *name); 323 uchar_t fnvlist_lookup_byte(nvlist_t *nvl, const char *name) [all...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| dsl_userhold.h | 46 int dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl);
|
| /src/external/cddl/osnet/dist/common/zfs/ |
| zfs_comutil.c | 69 zpool_get_rewind_policy(nvlist_t *nvl, zpool_rewind_policy_t *zrpp) 81 if (nvl == NULL) 85 while ((elem = nvlist_next_nvpair(nvl, elem)) != NULL) {
|
| zfs_ioctl_compat.c | 888 zfs_ioctl_compat_get_nvlist(uint64_t nvl, size_t size, int iflag, 903 if ((error = ddi_copyin((void *)(uintptr_t)nvl, packed, size, 909 packed = (void *)(uintptr_t)nvl; 926 zfs_ioctl_compat_put_nvlist(zfs_cmd_t *zc, nvlist_t *nvl) 932 VERIFY(nvlist_size(nvl, &size, NV_ENCODE_NATIVE) == 0); 936 VERIFY(nvlist_pack(nvl, &packed, &size, NV_ENCODE_NATIVE, 945 VERIFY(nvlist_pack(nvl, &packed, &size, NV_ENCODE_NATIVE, 954 zfs_ioctl_compat_fix_stats_nvlist(nvlist_t *nvl) 961 if (nvlist_lookup_nvlist_array(nvl, ZPOOL_CONFIG_CHILDREN, 968 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE [all...] |
| /src/external/cddl/osnet/sys/kern/ |
| sysevent.c | 86 nvlist_t *nvl; local 97 nvl = *ev_attr_list; 98 if (nvl == NULL) { 99 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME_TYPE, KM_SLEEP) != 0) 107 error = nvlist_add_uint64(nvl, name, se_value->value.sv_uint64); 113 error = nvlist_add_string(nvl, name, 126 nvlist_free(nvl); 130 *ev_attr_list = nvl;
|
| /src/external/cddl/osnet/dist/lib/libzfs/common/ |
| libzfs_dataset.c | 207 nvlist_t *nvl; local 209 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) { 220 if (nvlist_add_nvlist(nvl, nvpair_name(elem), propval) != 0) { 221 nvlist_free(nvl); 227 return (nvl); 863 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl, 885 while ((elem = nvlist_next_nvpair(nvl, elem)) != NULL) { 1386 zfs_add_synthetic_resv(zfs_handle_t *zhp, nvlist_t *nvl) 1409 old_reservation) || nvlist_exists(nvl, 1414 if (nvlist_lookup_uint64(nvl, zfs_prop_to_name(ZFS_PROP_VOLSIZE) 1537 nvlist_t *nvl = NULL; local 1571 nvlist_t *nvl; local 3409 nvlist_t *nvl; member in struct:destroydata 4422 nvlist_t *nvl; member in struct:holdarg [all...] |
| /src/external/cddl/osnet/dist/uts/common/os/ |
| fm.c | 125 nvlist_t *nvl = errorq_elem_nvl(ereport_errorq, eep); local 128 (void) fm_ereport_post(nvl, EVCH_TRYHARD); 130 fm_nvprint(nvl); 223 fm_nvprintr(nvlist_t *nvl, int d, int c, int cols) 227 for (nvp = nvlist_next_nvpair(nvl, NULL); 228 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { 358 fm_nvprint(nvlist_t *nvl) 365 if (nvlist_lookup_string(nvl, FM_CLASS, &class) == 0) 368 if (fm_nvprintr(nvl, 0, c, ereport_cols) != 0) 627 nvlist_t *nvl; local [all...] |