| /src/sys/external/bsd/libnv/dist/ |
| 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...] |
| 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...] |
| 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...] |
| /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/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/uts/common/fs/zfs/ |
| 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...] |
| 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...] |
| dsl_destroy.c | 537 nvlist_t *nvl = fnvlist_alloc(); local 540 fnvlist_add_boolean(nvl, name); 541 error = dsl_destroy_snapshots_nvl(nvl, defer, errlist); 543 fnvlist_free(nvl);
|
| 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...] |
| dmu_send.c | 880 nvlist_t *nvl = fnvlist_alloc(); local 881 fnvlist_add_uint64(nvl, "resume_object", resumeobj); 882 fnvlist_add_uint64(nvl, "resume_offset", resumeoff); 883 payload = fnvlist_pack(nvl, &payload_len); 885 fnvlist_free(nvl);
|
| vdev.c | 1500 nvlist_t *nvl; local 1531 if (nvlist_lookup_nvlist(label, ZPOOL_CONFIG_VDEV_TREE, &nvl) 1532 != 0 || nvlist_lookup_uint64(nvl, ZPOOL_CONFIG_ORIG_GUID,
|
| dsl_dataset.c | 1003 nvlist_t *nvl; member in struct:destroyarg 1015 fnvlist_add_boolean(da->nvl, dsname); 1029 da->nvl = snaps;
|
| spa.c | 195 spa_prop_add_list(nvlist_t *nvl, zpool_prop_t prop, char *strval, 209 VERIFY(nvlist_add_nvlist(nvl, propname, propval) == 0); 2135 nvlist_t *nvl; local 2139 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_SPLIT, &nvl) != 0) 2143 if (nvlist_lookup_uint64_array(nvl, ZPOOL_CONFIG_SPLIT_LIST, 2204 nvlist_t *nvl; local 2231 &nvl) == 0) { 2232 VERIFY(nvlist_dup(nvl, &spa->spa_config_splitting, 5326 nvlist_t **child, *nvl, *tmp; local 5355 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, &nvl) != 0 | [all...] |
| zfs_ioctl.c | 272 static int get_nvlist(uint64_t nvl, uint64_t size, int iflag, nvlist_t **nvp); 895 * nvl here in case the snapshot is created between 1123 * the name from the nvl here in case the filesystem 1361 get_nvlist(uint64_t nvl, uint64_t size, int iflag, nvlist_t **nvp) 1375 if ((error = ddi_copyin((void *)(uintptr_t)nvl, packed, size, 1432 put_nvlist(zfs_cmd_t *zc, nvlist_t *nvl) 1438 size = fnvlist_size(nvl); 1451 packed = fnvlist_pack(nvl, &size); 1565 nvlist_t *nvl = NULL; local 1574 (void) nvlist_lookup_nvlist(props, ZPOOL_ROOTFS_PROPS, &nvl); 2799 nvlist_t *nvl; local [all...] |
| /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/common/ |
| libzfs_iter.c | 42 nvlist_t *nvl = zfs_get_clones_nvl(zhp); local 45 if (nvl == NULL) 48 for (pair = nvlist_next_nvpair(nvl, NULL); pair != NULL; 49 pair = nvlist_next_nvpair(nvl, pair)) {
|
| libzfs_import.c | 387 nvlist_t *nvl; local 413 if (zcmd_read_dst_nvlist(hdl, &zc, &nvl) != 0) { 419 return (nvl); 464 nvlist_t *nvl; local 779 if ((nvl = refresh_config(hdl, config)) == NULL) { 786 config = nvl;
|
| libzfs_pool.c | 117 nvlist_t *nv, *nvl; local 122 nvl = zhp->zpool_props; 123 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) { 142 nvlist_t *nv, *nvl; local 162 nvl = zhp->zpool_props; 163 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) { 665 nvlist_t *nvl = NULL; local 674 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) 677 if (nvlist_add_string(nvl, propname, propval) != 0) { 678 nvlist_free(nvl); [all...] |
| 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/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/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...] |
| /src/external/cddl/osnet/dist/cmd/zfs/ |
| zfs_main.c | 1374 nvlist_t *nvl; local 1400 nvl = fnvlist_alloc(); 1401 fnvlist_add_boolean(nvl, argv[0]); 1403 err = lzc_destroy_bookmarks(nvl, NULL); 2584 nvlist_t *nvl = node->usn_nvl; local 2592 (void) nvlist_lookup_uint32(nvl, "type", &ustype); 2603 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { 4504 parse_who_perm(who_perm_t *who_perm, nvlist_t *nvl, char locality) 4511 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { 4528 parse_fs_perm(fs_perm_t *fsperm, nvlist_t *nvl) 4933 nvlist_t *nvl; local 5328 nvlist_t *nvl; member in struct:deleg_perms 5632 nvlist_t *nvl = NULL; local 5682 nvlist_t *nvl; local 7010 nvlist_t *nvl; local [all...] |