| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | nvpair.h | 91 } nvlist_t; typedef 156 int nvlist_dup(nvlist_t *, nvlist_t **, int); 157 int nvlist_merge(nvlist_t *, nvlist_t *, int); 164 int nvlist_xdup(nvlist_t *, nvlist_t **, nv_alloc_t *); 180 int nvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *); 192 int nvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t); 214 int nvlist_lookup_nvlist(nvlist_t *, const char *, nvlist_t **); 282 nvlist_t *fnvlist_dup(nvlist_t *); 283 void fnvlist_merge(nvlist_t *, nvlist_t *); 298 void fnvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *); [all …]
|
| H A D | dsl_bookmark.h | 107 nvlist_t *dbca_bmarks; 108 nvlist_t *dbca_errors; 120 int dsl_bookmark_create(nvlist_t *, nvlist_t *); 121 int dsl_bookmark_create_nvl_validate(nvlist_t *); 126 int dsl_get_bookmarks(const char *, nvlist_t *, nvlist_t *); 127 int dsl_get_bookmarks_impl(dsl_dataset_t *, nvlist_t *, nvlist_t *); 128 int dsl_get_bookmark_props(const char *, const char *, nvlist_t *); 129 int dsl_bookmark_destroy(nvlist_t *, nvlist_t *);
|
| H A 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);
|
| H A D | dsl_prop.h | 61 nvlist_t *pa_props; 68 nvlist_t *dpsa_props; 85 int dsl_prop_get_all(objset_t *os, nvlist_t **nvp); 86 int dsl_prop_get_received(const char *dsname, nvlist_t **nvp); 98 nvlist_t *props, dmu_tx_t *tx); 102 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl); 118 void dsl_prop_nvlist_add_uint64(nvlist_t *nv, zfs_prop_t prop, uint64_t value); 119 void dsl_prop_nvlist_add_string(nvlist_t *nv,
|
| /f-stack/freebsd/sys/ |
| H A D | nv.h | 51 typedef struct nvlist nvlist_t; typedef 93 nvlist_t *nvlist_clone(const nvlist_t *nvl); 106 nvlist_t *nvlist_xfer(int sock, nvlist_t *nvl, int flags); 110 const nvlist_t *nvlist_get_parent(const nvlist_t *nvl, void **cookiep); 112 const nvlist_t *nvlist_get_array_next(const nvlist_t *nvl); 115 const nvlist_t *nvlist_get_pararr(const nvlist_t *nvl, void **cookiep); 154 void nvlist_add_nvlist(nvlist_t *nvl, const char *name, const nvlist_t *value); 179 void nvlist_move_nvlist(nvlist_t *nvl, const char *name, nvlist_t *value); 199 const nvlist_t *nvlist_get_nvlist(const nvlist_t *nvl, const char *name); 219 nvlist_t *nvlist_take_nvlist(nvlist_t *nvl, const char *name); [all …]
|
| H A D | dnv.h | 50 typedef struct nvlist nvlist_t; typedef 63 bool dnvlist_get_bool(const nvlist_t *nvl, const char *name, bool defval); 64 uint64_t dnvlist_get_number(const nvlist_t *nvl, const char *name, uint64_t defval); 65 const char *dnvlist_get_string(const nvlist_t *nvl, const char *name, const char *defval); 66 const nvlist_t *dnvlist_get_nvlist(const nvlist_t *nvl, const char *name, const nvlist_t *defval); 67 int dnvlist_get_descriptor(const nvlist_t *nvl, const char *name, int defval); 78 bool dnvlist_take_bool(nvlist_t *nvl, const char *name, bool defval); 79 uint64_t dnvlist_take_number(nvlist_t *nvl, const char *name, uint64_t defval); 80 char *dnvlist_take_string(nvlist_t *nvl, const char *name, char *defval); 81 nvlist_t *dnvlist_take_nvlist(nvlist_t *nvl, const char *name, nvlist_t *defval); [all …]
|
| H A D | iov_schema.h | 37 nvlist_t *pci_iov_schema_alloc_node(void); 39 void pci_iov_schema_add_bool(nvlist_t *schema, const char *name, 41 void pci_iov_schema_add_string(nvlist_t *schema, const char *name, 43 void pci_iov_schema_add_uint8(nvlist_t *schema, const char *name, 45 void pci_iov_schema_add_uint16(nvlist_t *schema, const char *name, 47 void pci_iov_schema_add_uint32(nvlist_t *schema, const char *name, 49 void pci_iov_schema_add_uint64(nvlist_t *schema, const char *name, 51 void pci_iov_schema_add_unicast_mac(nvlist_t *schema, const char *name,
|
| /f-stack/freebsd/contrib/openzfs/include/ |
| H A D | libzfs_core.h | 52 int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **); 57 int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **); 58 int lzc_bookmark(nvlist_t *, nvlist_t **); 59 int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **); 61 int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **); 68 nvlist_t *, nvlist_t **); 73 int lzc_hold(nvlist_t *, int, nvlist_t **); 74 int lzc_release(nvlist_t *, nvlist_t **); 124 uint64_t, nvlist_t *, nvlist_t **); 126 uint64_t, nvlist_t *, nvlist_t **); [all …]
|
| H A D | libzfs.h | 253 nvlist_t *, nvlist_t *); 285 nvlist_t *); 287 nvlist_t *); 306 extern int zpool_vdev_split(zpool_handle_t *, char *, nvlist_t **, nvlist_t *, 409 extern nvlist_t *zpool_get_config(zpool_handle_t *, nvlist_t **); 422 nvlist_t *, int); 455 nvlist_t *); 527 nvlist_t *); 636 nvlist_t *); 644 nvlist_t *props); [all …]
|
| H A D | libzutil.h | 47 typedef nvlist_t *refresh_config_func_t(void *, nvlist_t *); 70 nvlist_t *policy; /* load policy (max txg, rewind, etc.) */ 73 extern nvlist_t *zpool_search_import(void *, importargs_t *, 75 extern int zpool_find_config(void *, const char *, nvlist_t **, importargs_t *, 79 extern int zpool_read_label(int, nvlist_t **, int *); 87 extern void update_vdev_config_dev_strs(nvlist_t *); 144 extern int zpool_history_unpack(char *, uint64_t, uint64_t *, nvlist_t ***,
|
| H A D | libnvpair.h | 49 extern void nvlist_print(FILE *, nvlist_t *); 50 int nvlist_print_json(FILE *, nvlist_t *); 51 extern void dump_nvlist(nvlist_t *, int); 93 extern void nvlist_prt(nvlist_t *, nvlist_prtctl_t); 143 int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, valtype), \ 160 NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_nvlist, nvlist_t *); 174 int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, vtype, uint_t), \ 188 NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_nvlist_array, nvlist_t **);
|
| H A D | libzfs_impl.h | 84 nvlist_t *zfs_props; 85 nvlist_t *zfs_user_props; 86 nvlist_t *zfs_recvd_props; 104 nvlist_t *zpool_config; 105 nvlist_t *zpool_old_config; 106 nvlist_t *zpool_props; 155 nvlist_t *, char **, uint64_t *, const char *); 177 int zcmd_write_src_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t *); 178 int zcmd_write_conf_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t *); 180 int zcmd_read_dst_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t **); [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/nvpair/ |
| H A D | fnvpair.c | 50 nvlist_t * 53 nvlist_t *nvl; in fnvlist_alloc() 96 nvlist_t * 99 nvlist_t *rv; in fnvlist_unpack() 104 nvlist_t * 107 nvlist_t *rv; in fnvlist_dup() 113 fnvlist_merge(nvlist_t *dst, nvlist_t *src) in fnvlist_merge() 407 nvlist_t * 410 nvlist_t *rv; in fnvlist_lookup_nvlist() 582 nvlist_t * [all …]
|
| H A D | nvpair.c | 817 nvlist_copy_pairs(nvlist_t *snvl, nvlist_t *dnvl) in nvlist_copy_pairs() 916 nvlist_dup(nvlist_t *nvl, nvlist_t **nvlp, int kmflag) in nvlist_dup() 922 nvlist_xdup(nvlist_t *nvl, nvlist_t **nvlp, nv_alloc_t *nva) in nvlist_xdup() 925 nvlist_t *ret; in nvlist_xdup() 1118 nvlist_copy_embedded(nvlist_t *nvl, nvlist_t *onvl, nvlist_t *emb_nvl) in nvlist_copy_embedded() 1178 nvlist_t **onvlp = (nvlist_t **)data; in nvlist_add_common() 1225 nvlist_t *onvl = (nvlist_t *)data; in nvlist_add_common() 1234 nvlist_t **onvlp = (nvlist_t **)data; in nvlist_add_common() 1236 nvlist_t *embedded = (nvlist_t *) in nvlist_add_common() 2279 nvlist_merge(nvlist_t *dst, nvlist_t *nvl, int flag) in nvlist_merge() [all …]
|
| /f-stack/freebsd/contrib/openzfs/include/sys/fm/ |
| H A D | protocol.h | 337 extern nvlist_t *fm_nvlist_create(nv_alloc_t *); 338 extern void fm_nvlist_destroy(nvlist_t *, int); 340 const nvlist_t *, ...); 341 extern void fm_payload_set(nvlist_t *, ...); 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, 350 extern void fm_fmri_mem_set(nvlist_t *, int, const nvlist_t *, const char *, 353 extern void fm_fmri_hc_create(nvlist_t *, int, const nvlist_t *, nvlist_t *, [all …]
|
| H A D | util.h | 76 typedef void zevent_cb_t(nvlist_t *, nvlist_t *); 79 nvlist_t *ev_nvl; /* protected by the zevent_lock */ 80 nvlist_t *ev_detector; /* " */ 95 extern void fm_nvprint(nvlist_t *); 96 extern void zfs_zevent_post_cb(nvlist_t *nvl, nvlist_t *detector); 97 extern int zfs_zevent_post(nvlist_t *, nvlist_t *, zevent_cb_t *); 101 extern int zfs_zevent_next(zfs_zevent_t *, nvlist_t **, uint64_t *, uint64_t *);
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs_core/ |
| H A D | libzfs_core.c | 173 nvlist_t *source, nvlist_t **resultp) in lzc_ioctl() 352 lzc_snapshot(nvlist_t *snaps, nvlist_t *props, nvlist_t **errlist) in lzc_snapshot() 355 nvlist_t *args; in lzc_snapshot() 407 nvlist_t *args; in lzc_destroy_snaps() 433 nvlist_t *args; in lzc_snaprange_space() 514 lzc_hold(nvlist_t *holds, int cleanup_fd, nvlist_t **errlist) in lzc_hold() 561 lzc_release(nvlist_t *holds, nvlist_t **errlist) in lzc_release() 1125 lzc_bookmark(nvlist_t *bookmarks, nvlist_t **errlist) in lzc_bookmark() 1229 lzc_destroy_bookmarks(nvlist_t *bmarks, nvlist_t **errlist) in lzc_destroy_bookmarks() 1496 nvlist_t *vdevs, nvlist_t **errlist) in lzc_initialize() [all …]
|
| /f-stack/freebsd/contrib/libnv/ |
| H A D | nv_impl.h | 93 size_t nvlist_ndescriptors(const nvlist_t *nvl); 94 void nvlist_set_flags(nvlist_t *nvl, int flags); 96 nvpair_t *nvlist_first_nvpair(const nvlist_t *nvl); 100 void nvlist_add_nvpair(nvlist_t *nvl, const nvpair_t *nvp); 102 bool nvlist_move_nvpair(nvlist_t *nvl, nvpair_t *nvp); 104 void nvlist_set_parent(nvlist_t *nvl, nvpair_t *parent); 105 void nvlist_set_array_next(nvlist_t *nvl, nvpair_t *ele); 106 nvpair_t *nvlist_get_array_next_nvpair(nvlist_t *nvl); 113 void nvlist_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp); 115 void nvlist_free_nvpair(nvlist_t *nvl, nvpair_t *nvp); [all …]
|
| H A D | nvlist.c | 128 nvlist_t * 131 nvlist_t *nvl; in nvlist_create() 209 const nvlist_t * 268 const nvlist_t * 282 const nvlist_t * 394 nvlist_t * 397 nvlist_t *newnvl; in nvlist_clone() 1118 static nvlist_t * 1247 nvlist_t * 1297 nvlist_t * [all …]
|
| H A D | dnvlist.c | 59 dnvlist_get_##type(const nvlist_t *nvl, const char *name, ftype defval) \ 71 DNVLIST_GET(const nvlist_t *, nvlist) in DNVLIST_GET() 79 dnvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep, in DNVLIST_GET() 96 dnvlist_take_##type(nvlist_t *nvl, const char *name, ftype defval) \ 108 DNVLIST_TAKE(nvlist_t *, nvlist) in DNVLIST_TAKE() 116 dnvlist_take_binary(nvlist_t *nvl, const char *name, size_t *sizep, in DNVLIST_TAKE()
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/libzfs_input_check/ |
| H A D | libzfs_input_check.c | 186 nvlist_t *input = fnvlist_alloc(); in lzc_ioctl_test() 187 nvlist_t *future = fnvlist_alloc(); in lzc_ioctl_test() 225 nvlist_t *empty = fnvlist_alloc(); in lzc_ioctl_test() 325 nvlist_t *props = fnvlist_alloc(); in test_create() 342 nvlist_t *snaps = fnvlist_alloc(); in test_snapshot() 343 nvlist_t *props = fnvlist_alloc(); in test_snapshot() 374 nvlist_t *snaps = fnvlist_alloc(); in test_destroy_snaps() 429 nvlist_t *props = fnvlist_alloc(); in test_clone() 457 nvlist_t *holds = fnvlist_alloc(); in test_hold() 527 nvlist_t *props = fnvlist_alloc(); in test_recv_new() [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zed/agents/ |
| H A D | fmd_api.h | 121 void (*fmdo_recv)(fmd_hdl_t *, fmd_event_t *, nvlist_t *, const char *); 184 extern void fmd_case_add_suspect(fmd_hdl_t *, fmd_case_t *, nvlist_t *); 211 extern nvlist_t *fmd_nvl_create_fault(fmd_hdl_t *, 212 const char *, uint8_t, nvlist_t *, nvlist_t *, nvlist_t *); 214 extern int fmd_nvl_class_match(fmd_hdl_t *, nvlist_t *, const char *); 223 extern nvlist_t *fmd_nvl_alloc(fmd_hdl_t *, int); 224 extern nvlist_t *fmd_nvl_dup(fmd_hdl_t *, nvlist_t *, int); 232 extern void fmd_module_recv(fmd_hdl_t *, nvlist_t *, const char *);
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | dsl_userhold.c | 40 nvlist_t *dduha_holds; 41 nvlist_t *dduha_chkholds; 42 nvlist_t *dduha_errlist; 86 nvlist_t *tmp_holds; in dsl_dataset_user_hold_check() 181 nvlist_t *tags; in dsl_dataset_user_hold_sync_one_impl() 206 nvlist_t *zhca_holds; 262 nvlist_t *tmpholds; in dsl_dataset_user_hold_sync_one() 277 nvlist_t *tmpholds; in dsl_dataset_user_hold_sync() 464 nvlist_t *holds; in dsl_dataset_user_release_check() 570 dsl_dataset_user_release_impl(nvlist_t *holds, nvlist_t *errlist, in dsl_dataset_user_release_impl() [all …]
|
| H A D | zfs_ioctl.c | 282 static int zfs_fill_zplprops_root(uint64_t, nvlist_t *, nvlist_t *, 789 nvlist_t *snaps; in zfs_secpolicy_destroy_snaps() 941 nvlist_t *snaps; in zfs_secpolicy_snapshot() 1190 nvlist_t *holds; in zfs_secpolicy_hold() 2043 nvlist_t *nv; in zfs_ioc_objset_stats_impl() 2116 nvlist_t *nv; in zfs_ioc_objset_recvd_props() 2180 nvlist_t *nv; in zfs_ioc_objset_zplprops() 2719 props_skip(nvlist_t *props, nvlist_t *skipped, nvlist_t **newprops) in props_skip() 2767 nvlist_t *nvl; in zfs_ioc_set_prop() 3017 nvlist_t *nvp; in zfs_ioc_get_fsacl() [all …]
|
| H A D | zcp_synctask.c | 47 typedef int (zcp_synctask_func_t)(lua_State *, boolean_t, nvlist_t *); 110 static int zcp_synctask_destroy(lua_State *, boolean_t, nvlist_t *); 128 zcp_synctask_destroy(lua_State *state, boolean_t sync, nvlist_t *err_details) in zcp_synctask_destroy() 163 static int zcp_synctask_promote(lua_State *, boolean_t, nvlist_t *); 179 zcp_synctask_promote(lua_State *state, boolean_t sync, nvlist_t *err_details) in zcp_synctask_promote() 232 static int zcp_synctask_snapshot(lua_State *, boolean_t, nvlist_t *); 300 nvlist_t *err_details); 349 nvlist_t *err_details) in zcp_synctask_inherit_prop() 377 static int zcp_synctask_bookmark(lua_State *, boolean_t, nvlist_t *); 401 nvlist_t *bmarks = fnvlist_alloc(); in zcp_synctask_bookmark() [all …]
|