| /freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/sys/ |
| D | nvpair.h | 94 } nvlist_t; typedef 153 int nvlist_alloc(nvlist_t **, uint_t, int); 154 void nvlist_free(nvlist_t *); 155 int nvlist_size(nvlist_t *, size_t *, int); 156 int nvlist_pack(nvlist_t *, char **, size_t *, int, int); 157 int nvlist_unpack(char *, size_t, nvlist_t **, int); 158 int nvlist_dup(nvlist_t *, nvlist_t **, int); 159 int nvlist_merge(nvlist_t *, nvlist_t *, int); 161 uint_t nvlist_nvflag(nvlist_t *); 163 int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *); [all …]
|
| D | sysevent.h | 107 typedef nvlist_t sysevent_attr_list_t; 227 const char *, const char *, nvlist_t *, uint32_t); 229 extern int sysevent_evc_setpropnvl(evchan_t *, nvlist_t *); 230 extern int sysevent_evc_getpropnvl(evchan_t *, nvlist_t **); 280 extern int sysevent_get_attr_list(sysevent_t *, nvlist_t **);
|
| /freebsd-9-stable/sys/cddl/contrib/opensolaris/common/nvpair/ |
| D | fnvpair.c | 53 nvlist_t * 56 nvlist_t *nvl; in fnvlist_alloc() 62 fnvlist_free(nvlist_t *nvl) in fnvlist_free() 68 fnvlist_size(nvlist_t *nvl) in fnvlist_size() 80 fnvlist_pack(nvlist_t *nvl, size_t *sizep) in fnvlist_pack() 99 nvlist_t * 102 nvlist_t *rv; in fnvlist_unpack() 107 nvlist_t * 108 fnvlist_dup(nvlist_t *nvl) in fnvlist_dup() 110 nvlist_t *rv; in fnvlist_dup() [all …]
|
| D | nvpair.c | 134 static int nvlist_add_common(nvlist_t *nvl, const char *name, data_type_t type, 138 #define EMBEDDED_NVL(nvp) ((nvlist_t *)(void *)NVP_VALUE(nvp)) 139 #define EMBEDDED_NVL_ARRAY(nvp) ((nvlist_t **)(void *)NVP_VALUE(nvp)) 178 nvlist_lookup_nv_alloc(nvlist_t *nvl) in nvlist_lookup_nv_alloc() 254 nvlist_init(nvlist_t *nvl, uint32_t nvflag, nvpriv_t *priv) in nvlist_init() 264 nvlist_nvflag(nvlist_t *nvl) in nvlist_nvflag() 274 nvlist_alloc(nvlist_t **nvlp, uint_t nvflag, int kmflag) in nvlist_alloc() 285 nvlist_xalloc(nvlist_t **nvlp, uint_t nvflag, nv_alloc_t *nva) in nvlist_xalloc() 296 NV_ALIGN(sizeof (nvlist_t)))) == NULL) { in nvlist_xalloc() 310 nvp_buf_alloc(nvlist_t *nvl, size_t len) in nvp_buf_alloc() [all …]
|
| /freebsd-9-stable/cddl/contrib/opensolaris/lib/libzfs_core/common/ |
| D | libzfs_core.h | 49 int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **); 50 int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *); 51 int lzc_clone(const char *, const char *, nvlist_t *); 52 int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **); 53 int lzc_bookmark(nvlist_t *, nvlist_t **); 54 int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **); 55 int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **); 59 int lzc_hold(nvlist_t *, int, nvlist_t **); 60 int lzc_release(nvlist_t *, nvlist_t **); 61 int lzc_get_holds(const char *, nvlist_t **); [all …]
|
| D | libzfs_core.c | 129 nvlist_t *source, nvlist_t **resultp) 135 nvlist_t *oldsource; 220 lzc_create(const char *fsname, enum lzc_dataset_type type, nvlist_t *props) 223 nvlist_t *args = fnvlist_alloc(); 234 nvlist_t *props) 237 nvlist_t *args = fnvlist_alloc(); 262 lzc_snapshot(nvlist_t *snaps, nvlist_t *props, nvlist_t **errlist) 265 nvlist_t *args; 314 lzc_destroy_snaps(nvlist_t *snaps, boolean_t defer, nvlist_t **errlist) 317 nvlist_t *args; [all …]
|
| /freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/sys/fm/ |
| D | protocol.h | 333 extern nvlist_t *fm_nvlist_create(nv_alloc_t *); 334 extern void fm_nvlist_destroy(nvlist_t *, int); 339 extern void fm_ereport_set(nvlist_t *, int, const char *, uint64_t, 340 const nvlist_t *, ...); 341 extern void fm_payload_set(nvlist_t *, ...); 342 extern int i_fm_payload_set(nvlist_t *, const char *, va_list); 343 extern void fm_fmri_hc_set(nvlist_t *, int, const nvlist_t *, nvlist_t *, 345 extern void fm_fmri_dev_set(nvlist_t *, int, const nvlist_t *, const char *, 347 extern void fm_fmri_de_set(nvlist_t *, int, const nvlist_t *, const char *); 348 extern void fm_fmri_cpu_set(nvlist_t *, int, const nvlist_t *, uint32_t, [all …]
|
| /freebsd-9-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
| D | libzfs.h | 227 extern int zpool_create(libzfs_handle_t *, const char *, nvlist_t *, 228 nvlist_t *, nvlist_t *); 230 extern int zpool_add(zpool_handle_t *, nvlist_t *); 244 extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *); 252 const char *, nvlist_t *, int); 255 extern int zpool_vdev_split(zpool_handle_t *, char *, nvlist_t **, nvlist_t *, 262 extern nvlist_t *zpool_find_vdev(zpool_handle_t *, const char *, boolean_t *, 264 extern nvlist_t *zpool_find_vdev_by_physpath(zpool_handle_t *, const char *, 339 extern zpool_status_t zpool_import_status(nvlist_t *, char **); 345 extern nvlist_t *zpool_get_config(zpool_handle_t *, nvlist_t **); [all …]
|
| D | libzfs_impl.h | 94 nvlist_t *zfs_props; 95 nvlist_t *zfs_user_props; 96 nvlist_t *zfs_recvd_props; 114 nvlist_t *zpool_config; 115 nvlist_t *zpool_old_config; 116 nvlist_t *zpool_props; 156 nvlist_t *, char **, uint64_t *, const char *); 174 int zcmd_write_src_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t *); 175 int zcmd_write_conf_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t *); 177 int zcmd_read_dst_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t **); [all …]
|
| D | libzfs_pool.c | 50 static int read_efi_label(nvlist_t *config, diskaddr_t *sb); 103 nvlist_t *old_props; in zpool_props_refresh() 118 nvlist_t *nv, *nvl; in zpool_get_prop_string() 143 nvlist_t *nv, *nvl; in zpool_get_prop_int() 248 nvlist_t *nvroot; in zpool_get_prop() 394 pool_uses_efi(nvlist_t *config) in pool_uses_efi() 397 nvlist_t **child; in pool_uses_efi() 428 static nvlist_t * 430 nvlist_t *props, uint64_t version, prop_flags_t flags, char *errbuf) in zpool_valid_proplist() 433 nvlist_t *retprops; in zpool_valid_proplist() [all …]
|
| D | libzfs_import.c | 69 nvlist_t *ce_config; 126 fix_paths(nvlist_t *nv, name_entry_t *names) in fix_paths() 128 nvlist_t **child; in fix_paths() 214 nvlist_t *config) in add_config() 373 static nvlist_t * 374 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) in refresh_config() 376 nvlist_t *nvl; in refresh_config() 433 static nvlist_t * 439 nvlist_t *ret = NULL, *config = NULL, *tmp, *nvtop, *nvroot; in get_configs() 440 nvlist_t **spares, **l2cache; in get_configs() [all …]
|
| /freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
| D | dsl_bookmark.h | 40 int dsl_bookmark_create(nvlist_t *, nvlist_t *); 41 int dsl_get_bookmarks(const char *, nvlist_t *, nvlist_t *); 42 int dsl_get_bookmarks_impl(dsl_dataset_t *, nvlist_t *, nvlist_t *); 43 int dsl_bookmark_destroy(nvlist_t *, nvlist_t *);
|
| D | dsl_userhold.h | 43 int dsl_dataset_user_hold(nvlist_t *holds, minor_t cleanup_minor, 44 nvlist_t *errlist); 45 int dsl_dataset_user_release(nvlist_t *holds, nvlist_t *errlist); 46 int dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl); 47 void dsl_dataset_user_release_tmp(struct dsl_pool *dp, nvlist_t *holds);
|
| D | dsl_prop.h | 53 nvlist_t *pa_props; 68 int dsl_prop_get_all(objset_t *os, nvlist_t **nvp); 69 int dsl_prop_get_received(const char *dsname, nvlist_t **nvp); 79 nvlist_t *props, dmu_tx_t *tx); 83 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl); 99 void dsl_prop_nvlist_add_uint64(nvlist_t *nv, zfs_prop_t prop, uint64_t value); 100 void dsl_prop_nvlist_add_string(nvlist_t *nv,
|
| D | spa.h | 459 nvlist_t *policy, nvlist_t **config); 460 extern int spa_get_stats(const char *pool, nvlist_t **config, char *altroot, 462 extern int spa_create(const char *pool, nvlist_t *config, nvlist_t *props, 463 nvlist_t *zplprops); 469 extern int spa_import(const char *pool, nvlist_t *config, nvlist_t *props, 471 extern nvlist_t *spa_tryimport(nvlist_t *tryconfig); 473 extern int spa_export(char *pool, nvlist_t **oldconfig, boolean_t force, 501 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot); 502 extern int spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, 510 extern int spa_vdev_split_mirror(spa_t *spa, char *newname, nvlist_t *config, [all …]
|
| D | dsl_deleg.h | 66 int dsl_deleg_get(const char *ddname, nvlist_t **nvp); 67 int dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset); 71 int dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr); 72 int dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
|
| D | spa_impl.h | 64 nvlist_t *sav_config; /* cached device config */ 68 nvlist_t **sav_pending; /* pending device additions */ 124 nvlist_t *spa_config; /* last synced config */ 125 nvlist_t *spa_config_syncing; /* currently syncing config */ 126 nvlist_t *spa_config_splitting; /* config for splitting */ 127 nvlist_t *spa_load_info; /* info and errors from load */ 156 nvlist_t *spa_label_features; /* Features for reading MOS */
|
| /freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| D | dsl_userhold.c | 40 nvlist_t *dduha_holds; 41 nvlist_t *dduha_chkholds; 42 nvlist_t *dduha_errlist; 134 dsl_dataset_user_hold_sync_one_impl(nvlist_t *tmpholds, dsl_dataset_t *ds, in dsl_dataset_user_hold_sync_one_impl() 160 nvlist_t *tags; in dsl_dataset_user_hold_sync_one_impl() 185 nvlist_t *zhca_holds; 217 dsl_onexit_hold_cleanup(spa_t *spa, nvlist_t *holds, minor_t minor) in dsl_onexit_hold_cleanup() 241 nvlist_t *tmpholds; in dsl_dataset_user_hold_sync_one() 256 nvlist_t *tmpholds; in dsl_dataset_user_hold_sync() 304 dsl_dataset_user_hold(nvlist_t *holds, minor_t cleanup_minor, nvlist_t *errlist) in dsl_dataset_user_hold() [all …]
|
| D | zfs_ioctl.c | 212 typedef int zfs_ioc_func_t(const char *, nvlist_t *, nvlist_t *); 213 typedef int zfs_secpolicy_func_t(zfs_cmd_t *, nvlist_t *, cred_t *); 249 static int zfs_check_clearable(char *dataset, nvlist_t *props, 250 nvlist_t **errors); 251 static int zfs_fill_zplprops_root(uint64_t, nvlist_t *, nvlist_t *, 253 int zfs_set_prop_nvlist(const char *, zprop_source_t, nvlist_t *, nvlist_t *); 254 static int get_nvlist(uint64_t nvl, uint64_t size, int iflag, nvlist_t **nvp); 404 zfs_secpolicy_none(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) in zfs_secpolicy_none() 415 zfs_secpolicy_read(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) in zfs_secpolicy_read() 678 zfs_secpolicy_set_fsacl(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) in zfs_secpolicy_set_fsacl() [all …]
|
| D | dsl_bookmark.c | 109 nvlist_t *dbca_bmarks; 110 nvlist_t *dbca_errors; 236 dsl_bookmark_create(nvlist_t *bmarks, nvlist_t *errors) in dsl_bookmark_create() 253 dsl_get_bookmarks_impl(dsl_dataset_t *ds, nvlist_t *props, nvlist_t *outnvl) in dsl_get_bookmarks_impl() 275 nvlist_t *out_props = fnvlist_alloc(); in dsl_get_bookmarks_impl() 307 dsl_get_bookmarks(const char *dsname, nvlist_t *props, nvlist_t *outnvl) in dsl_get_bookmarks() 330 nvlist_t *dbda_bmarks; 331 nvlist_t *dbda_success; 332 nvlist_t *dbda_errors; 438 dsl_bookmark_destroy(nvlist_t *bmarks, nvlist_t *errors) in dsl_bookmark_destroy()
|
| /freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/os/ |
| D | fm.c | 120 nvlist_t *nvl = errorq_elem_nvl(ereport_errorq, eep); in fm_drain() 218 fm_nvprintr(nvlist_t *nvl, int d, int c, int cols) in fm_nvprintr() 234 nvlist_t *cnv; in fm_nvprintr() 318 nvlist_t **val; in fm_nvprintr() 353 fm_nvprint(nvlist_t *nvl) in fm_nvprint() 519 fm_ereport_post(nvlist_t *ereport, int evc_flag) in fm_ereport_post() 618 nvlist_t * 622 nvlist_t *nvl; in fm_nvlist_create() 655 fm_nvlist_destroy(nvlist_t *nvl, int flag) in fm_nvlist_destroy() 668 i_fm_payload_set(nvlist_t *payload, const char *name, va_list ap) in i_fm_payload_set() [all …]
|
| /freebsd-9-stable/cddl/contrib/opensolaris/lib/libnvpair/ |
| D | libnvpair.h | 48 extern void nvlist_print(FILE *, nvlist_t *); 49 extern void dump_nvlist(nvlist_t *, int); 91 extern void nvlist_prt(nvlist_t *, nvlist_prtctl_t); 141 int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, valtype), \ 158 NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_nvlist, nvlist_t *); 172 int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, vtype, uint_t), \ 186 NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_nvlist_array, nvlist_t **);
|
| D | libnvpair.c | 48 int (*op)(struct nvlist_prtctl *, void *, nvlist_t *, \ 55 int (*op)(struct nvlist_prtctl *, void *, nvlist_t *, \ 75 DEFINEOP(print_nvlist, nvlist_t *); 87 DEFINEARROP(print_nvlist_array, nvlist_t **); 143 static void nvlist_print_with_indent(nvlist_t *, nvlist_prtctl_t); 191 nvlist_t *nvl, const char *name, vtype value) \ 224 nvlist_t *nvl, const char *name, vtype *valuep, uint_t count) \ 259 nvlist_t *nvl, const char *name, nvlist_t *value) in nvprint_nvlist() 279 nvlist_t *nvl, const char *name, nvlist_t **valuep, uint_t count) in nvaprint_nvlist_array() 422 int (*func)(nvlist_prtctl_t, void *, nvlist_t *, const char *, vtype), \ [all …]
|
| /freebsd-9-stable/cddl/contrib/opensolaris/cmd/zpool/ |
| D | zpool_vdev.c | 416 static nvlist_t * 421 nvlist_t *vdev = NULL; in make_leaf_vdev() 580 get_replication(nvlist_t *nvroot, boolean_t fatal) in get_replication() 582 nvlist_t **top; in get_replication() 584 nvlist_t **child; in get_replication() 586 nvlist_t *nv; in get_replication() 653 nvlist_t *cnv = child[c]; in get_replication() 672 nvlist_t **rchild; in get_replication() 830 check_replication(nvlist_t *config, nvlist_t *newroot) in check_replication() 832 nvlist_t **child; in check_replication() [all …]
|
| D | zpool_util.h | 40 uint_t num_logs(nvlist_t *nv); 46 nvlist_t *make_root_vdev(zpool_handle_t *zhp, int force, int check_rep, 48 nvlist_t *split_mirror_vdev(zpool_handle_t *zhp, char *newname, 49 nvlist_t *props, splitflags_t flags, int argc, char **argv);
|