/freebsd/sys/sys/ |
H A D | nv.h | 50 typedef struct nvlist nvlist_t; typedef 85 nvlist_t *nvlist_create(int flags); 86 void nvlist_destroy(nvlist_t *nvl); 87 int nvlist_error(const nvlist_t *nvl); 88 bool nvlist_empty(const nvlist_t *nvl); 89 int nvlist_flags(const nvlist_t *nvl); 90 void nvlist_set_error(nvlist_t *nvl, int error); 92 nvlist_t *nvlist_clone(const nvlist_t *nvl); 95 void nvlist_dump(const nvlist_t *nvl, int fd); 96 void nvlist_fdump(const nvlist_t *nvl, FILE *fp); [all …]
|
H A D | dnv.h | 48 typedef struct nvlist nvlist_t; typedef 61 bool dnvlist_get_bool(const nvlist_t *nvl, const char *name, bool defval); 62 uint64_t dnvlist_get_number(const nvlist_t *nvl, const char *name, uint64_t defval); 63 const char *dnvlist_get_string(const nvlist_t *nvl, const char *name, const char *defval); 64 const nvlist_t *dnvlist_get_nvlist(const nvlist_t *nvl, const char *name, const nvlist_t *defval); 65 int dnvlist_get_descriptor(const nvlist_t *nvl, const char *name, int defval); 66 const void *dnvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep, const void *de… 76 bool dnvlist_take_bool(nvlist_t *nvl, const char *name, bool defval); 77 uint64_t dnvlist_take_number(nvlist_t *nvl, const char *name, uint64_t defval); 78 char *dnvlist_take_string(nvlist_t *nvl, const char *name, char *defval); [all …]
|
H A D | iov_schema.h | 35 nvlist_t *pci_iov_schema_alloc_node(void); 37 void pci_iov_schema_add_bool(nvlist_t *schema, const char *name, 39 void pci_iov_schema_add_string(nvlist_t *schema, const char *name, 41 void pci_iov_schema_add_uint8(nvlist_t *schema, const char *name, 43 void pci_iov_schema_add_uint16(nvlist_t *schema, const char *name, 45 void pci_iov_schema_add_uint32(nvlist_t *schema, const char *name, 47 void pci_iov_schema_add_uint64(nvlist_t *schema, const char *name, 49 void pci_iov_schema_add_unicast_mac(nvlist_t *schema, const char *name, 51 void pci_iov_schema_add_vlan(nvlist_t *schema, const char *name,
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | nvpair.h | 91 } nvlist_t; typedef 152 _SYS_NVPAIR_H int nvlist_alloc(nvlist_t **, uint_t, int); 153 _SYS_NVPAIR_H void nvlist_free(nvlist_t *); 154 _SYS_NVPAIR_H int nvlist_size(nvlist_t *, size_t *, int); 155 _SYS_NVPAIR_H int nvlist_pack(nvlist_t *, char **, size_t *, int, int); 156 _SYS_NVPAIR_H int nvlist_unpack(char *, size_t, nvlist_t **, int); 157 _SYS_NVPAIR_H int nvlist_dup(const nvlist_t *, nvlist_t **, int); 158 _SYS_NVPAIR_H int nvlist_merge(nvlist_t *, nvlist_t *, int); 160 _SYS_NVPAIR_H uint_t nvlist_nvflag(nvlist_t *); 162 _SYS_NVPAIR_H int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *); [all …]
|
H A D | dsl_bookmark.h | 108 nvlist_t *dbca_bmarks; 109 nvlist_t *dbca_errors; 121 int dsl_bookmark_create(nvlist_t *, nvlist_t *); 122 int dsl_bookmark_create_nvl_validate(nvlist_t *); 127 int dsl_get_bookmarks(const char *, nvlist_t *, nvlist_t *); 128 int dsl_get_bookmarks_impl(dsl_dataset_t *, nvlist_t *, nvlist_t *); 129 int dsl_get_bookmark_props(const char *, const char *, nvlist_t *); 130 int dsl_bookmark_destroy(nvlist_t *, nvlist_t *);
|
/freebsd/sys/contrib/openzfs/include/ |
H A D | libzfs_core.h | 55 _LIBZFS_CORE_H int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **); 56 _LIBZFS_CORE_H int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *, 58 _LIBZFS_CORE_H int lzc_clone(const char *, const char *, nvlist_t *); 60 _LIBZFS_CORE_H int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **); 61 _LIBZFS_CORE_H int lzc_bookmark(nvlist_t *, nvlist_t **); 62 _LIBZFS_CORE_H int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **); 63 _LIBZFS_CORE_H int lzc_get_bookmark_props(const char *, nvlist_t **); 64 _LIBZFS_CORE_H int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **); 67 _LIBZFS_CORE_H int lzc_change_key(const char *, uint64_t, nvlist_t *, uint8_t *, 70 nvlist_t *, nvlist_t **); [all …]
|
H A D | libzfs.h | 262 _LIBZFS_H int zpool_create(libzfs_handle_t *, const char *, nvlist_t *, 263 nvlist_t *, nvlist_t *); 265 _LIBZFS_H int zpool_add(zpool_handle_t *, nvlist_t *, boolean_t check_ashift); 295 nvlist_t *); 297 nvlist_t *); 298 _LIBZFS_H int zpool_trim(zpool_handle_t *, pool_trim_func_t, nvlist_t *, 301 _LIBZFS_H int zpool_clear(zpool_handle_t *, const char *, nvlist_t *); 315 const char *, nvlist_t *, int, boolean_t); 321 _LIBZFS_H int zpool_vdev_split(zpool_handle_t *, char *, nvlist_t **, 322 nvlist_t *, splitflags_t); [all …]
|
H A D | libzutil.h | 49 typedef nvlist_t *refresh_config_func_t(void *, nvlist_t *); 81 nvlist_t *policy; /* load policy (max txg, rewind, etc.) */ 97 _LIBZUTIL_H nvlist_t *zpool_search_import(libpc_handle_t *, importargs_t *); 98 _LIBZUTIL_H int zpool_find_config(libpc_handle_t *, const char *, nvlist_t **, 102 _LIBZUTIL_H int zpool_read_label(int, nvlist_t **, int *); 111 _LIBZUTIL_H void update_vdev_config_dev_strs(nvlist_t *); 169 _LIBZUTIL_H int zpool_history_unpack(char *, uint64_t, uint64_t *, nvlist_t ***, 212 typedef int (*pool_vdev_iter_f)(void *, nvlist_t *, void *); 213 int for_each_vdev_cb(void *zhp, nvlist_t *nv, pool_vdev_iter_f func, 215 int for_each_vdev_macro_helper_func(void *zhp_data, nvlist_t *nv, void *data); [all …]
|
/freebsd/stand/libsa/zfs/ |
H A D | nvlist.h | 91 } nvlist_t; typedef 125 nvlist_t *nvlist_create(int); 126 void nvlist_destroy(nvlist_t *); 127 nvlist_t *nvlist_import(const char *, size_t); 128 int nvlist_export(nvlist_t *); 129 int nvlist_remove(nvlist_t *, const char *, data_type_t); 131 nvp_header_t *nvpair_find(nvlist_t *, const char *); 133 void nvlist_print(const nvlist_t *, unsigned int); 135 int nvlist_find(const nvlist_t *, const char *, data_type_t, 137 nvp_header_t *nvlist_next_nvpair(nvlist_t *, nvp_header_t *); [all …]
|
/freebsd/sys/contrib/openzfs/module/nvpair/ |
H A D | fnvpair.c | 50 nvlist_t * 53 nvlist_t *nvl; in fnvlist_alloc() 59 fnvlist_free(nvlist_t *nvl) in fnvlist_free() 65 fnvlist_size(nvlist_t *nvl) in fnvlist_size() 77 fnvlist_pack(nvlist_t *nvl, size_t *sizep) in fnvlist_pack() 96 nvlist_t * 99 nvlist_t *rv; in fnvlist_unpack() 104 nvlist_t * 105 fnvlist_dup(const nvlist_t *nvl) in fnvlist_dup() 107 nvlist_t *rv; in fnvlist_dup() [all …]
|
H A D | nvpair.c | 66 * | nvlist_t | 117 * | | nvlist_t | | 138 static int nvlist_add_common(nvlist_t *nvl, const char *name, data_type_t type, 142 #define EMBEDDED_NVL(nvp) ((nvlist_t *)(void *)NVP_VALUE(nvp)) 143 #define EMBEDDED_NVL_ARRAY(nvp) ((nvlist_t **)(void *)NVP_VALUE(nvp)) 189 nvlist_lookup_nv_alloc(nvlist_t *nvl) in nvlist_lookup_nv_alloc() 328 nvt_lookup_name_type(const nvlist_t *nvl, const char *name, data_type_t type) in nvt_lookup_name_type() 360 nvt_lookup_name(const nvlist_t *nvl, const char *name) in nvt_lookup_name() 466 nvt_remove_nvpair(nvlist_t *nvl, const nvpair_t *nvp) in nvt_remove_nvpair() 504 nvt_add_nvpair(nvlist_t *nv in nvt_add_nvpair() [all...] |
/freebsd/sys/dev/pci/ |
H A D | pci_iov_schema.c | 49 const nvlist_t *, const char *name); 51 const nvlist_t *); 135 pci_iov_schema_add_type(nvlist_t *entry, const char *type) in pci_iov_schema_add_type() 146 pci_iov_schema_add_required(nvlist_t *entry, uint32_t flags) in pci_iov_schema_add_required() 160 pci_iov_schema_add_bool(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_bool() 163 nvlist_t *entry; in pci_iov_schema_add_bool() 180 pci_iov_schema_add_string(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_string() 183 nvlist_t *entry; in pci_iov_schema_add_string() 200 pci_iov_schema_int(nvlist_t *schema, const char *name, const char *type, in pci_iov_schema_int() 203 nvlist_t *entry; in pci_iov_schema_int() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/ |
H A D | libzfs_core.c | 175 nvlist_t *source, nvlist_t **resultp) in lzc_ioctl() 252 nvlist_t *source, nvlist_t **resultp) in lzc_scrub() 258 lzc_create(const char *fsname, enum lzc_dataset_type type, nvlist_t *props, in lzc_create() 262 nvlist_t *hidden_args = NULL; in lzc_create() 263 nvlist_t *args = fnvlist_alloc(); in lzc_create() 283 lzc_clone(const char *fsname, const char *origin, nvlist_t *props) in lzc_clone() 286 nvlist_t *hidden_args = NULL; in lzc_clone() 287 nvlist_t *args = fnvlist_alloc(); in lzc_clone() 340 nvlist_t *args = fnvlist_alloc(); in lzc_destroy() 362 lzc_snapshot(nvlist_t *snaps, nvlist_t *props, nvlist_t **errlist) in lzc_snapshot() [all …]
|
/freebsd/sys/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); 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/sys/netpfil/pf/ |
H A D | pf_nv.h | 59 int pf_nv ## fnname ## _opt(const nvlist_t *, const char *, \ 61 int pf_nv ## fnname(const nvlist_t *, const char *, type *); \ 62 int pf_nv ## fnname ## _array(const nvlist_t *, const char *, \ 64 void pf_ ## fnname ## _array_nv(nvlist_t *, const char *, \ 72 int pf_nvbool(const nvlist_t *, const char *, bool *); 73 int pf_nvbinary(const nvlist_t *, const char *, void *, size_t); 74 int pf_nvint(const nvlist_t *, const char *, int *); 75 int pf_nvstring(const nvlist_t *, const char *, char *, size_t); 81 nvlist_t *pf_krule_to_nvrule(struct pf_krule *); 82 int pf_nvrule_to_krule(const nvlist_t *, struct pf_krule *); [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | config.h | 59 const char *get_config_value_node(const nvlist_t *parent, const char *name); 76 nvlist_t *create_config_node(const char *path); 83 nvlist_t *find_config_node(const char *path); 89 nvlist_t *create_relative_config_node(nvlist_t *parent, const char *path); 90 nvlist_t *find_relative_config_node(nvlist_t *parent, const char *path); 97 void set_config_value_node(nvlist_t *parent, const char *name, 103 void set_config_value_node_if_unset(nvlist_t *const parent, 120 bool get_config_bool_node(const nvlist_t *parent, const char *name); 122 bool get_config_bool_node_default(const nvlist_t *parent, const char *name, 125 void set_config_bool_node(nvlist_t *parent, const char *name, bool value);
|
/freebsd/lib/libcasper/services/cap_syslog/ |
H A D | cap_syslog.c | 61 nvlist_t *nvl; in cap_vsyslog() 80 nvlist_t *nvl; in cap_openlog() 102 nvlist_t *nvl; in cap_closelog() 116 nvlist_t *nvl; in cap_setlogmask() 138 slog_vsyslog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_vsyslog() 139 nvlist_t *nvlout __unused) in slog_vsyslog() 147 slog_openlog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_openlog() 148 nvlist_t *nvlout __unused) in slog_openlog() 176 slog_closelog(const nvlist_t *limits __unused, const nvlist_t *nvlin __unused, in slog_closelog() 177 nvlist_t *nvlout __unused) in slog_closelog() [all …]
|
/freebsd/usr.sbin/iovctl/ |
H A D | validate.c | 47 static nvlist_t * 48 find_config(nvlist_t *config, const char * device) in find_config() 50 nvlist_t *subsystem, *empty_driver, *empty_iov; in find_config() 97 apply_subsystem_defaults(nvlist_t *device_config, const char *subsystem, in apply_subsystem_defaults() 98 const nvlist_t *device_defaults) in apply_subsystem_defaults() 100 nvlist_t *config; in apply_subsystem_defaults() 101 const nvlist_t *defaults; in apply_subsystem_defaults() 152 apply_defaults(nvlist_t *vf, const nvlist_t *defaults) in apply_defaults() 164 validate_subsystem(const nvlist_t *device, const nvlist_t *device_schema, in validate_subsystem() 167 const nvlist_t *subsystem, *schema, *config; in validate_subsystem() [all …]
|
/freebsd/sys/contrib/libnv/ |
H A D | nv_impl.h | 100 int *nvlist_descriptors(const nvlist_t *nvl, size_t *nitemsp); 101 size_t nvlist_ndescriptors(const nvlist_t *nvl); 102 void nvlist_set_flags(nvlist_t *nvl, int flags); 104 nvpair_t *nvlist_first_nvpair(const nvlist_t *nvl); 105 nvpair_t *nvlist_next_nvpair(const nvlist_t *nvl, const nvpair_t *nvp); 106 nvpair_t *nvlist_prev_nvpair(const nvlist_t *nvl, const nvpair_t *nvp); 108 void nvlist_add_nvpair(nvlist_t *nvl, const nvpair_t *nvp); 110 bool nvlist_move_nvpair(nvlist_t *nvl, nvpair_t *nvp); 112 void nvlist_set_parent(nvlist_t *nvl, nvpair_t *parent); 113 void nvlist_set_array_next(nvlist_t *nvl, nvpair_t *ele); [all …]
|
H A D | nvlist.c | 122 nvlist_t * 125 nvlist_t *nvl; in nvlist_create() 144 nvlist_destroy(nvlist_t *nvl) in nvlist_destroy() 170 nvlist_set_error(nvlist_t *nvl, int error) in nvlist_set_error() 184 nvlist_error(const nvlist_t *nvl) in nvlist_error() 196 nvlist_get_nvpair_parent(const nvlist_t *nvl) in nvlist_get_nvpair_parent() 204 const nvlist_t * 205 nvlist_get_parent(const nvlist_t *nvl, void **cookiep) in nvlist_get_parent() 221 nvlist_set_parent(nvlist_t *nvl, nvpair_t *parent) in nvlist_set_parent() 230 nvlist_set_array_next(nvlist_t *nvl, nvpair_t *ele) in nvlist_set_array_next() [all …]
|
/freebsd/lib/libcasper/services/cap_net/ |
H A D | cap_net.c | 63 nvlist_t *cnl_addr2name; 64 nvlist_t *cnl_name2addr; 65 nvlist_t *cnl_connect; 66 nvlist_t *cnl_bind; 93 hostent_unpack(const nvlist_t *nvl, struct hostent *hp) in hostent_unpack() 147 nvlist_t *nvl; in request_cb() 200 nvlist_t *nvl; in cap_gethostbyname2() 227 nvlist_t *nvl; in cap_gethostbyaddr() 249 addrinfo_unpack(const nvlist_t *nvl) in addrinfo_unpack() 288 const nvlist_t *nvlai; in cap_getaddrinfo() [all …]
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | vdev.h | 53 typedef struct nvlist nvlist_t; typedef 78 Vdev(zpool_handle_t *pool, nvlist_t *vdevConfig); 94 Vdev(nvlist_t *poolConfig, nvlist_t *vdevConfig); 103 Vdev(nvlist_t *vdevConfig); 129 nvlist_t *PoolConfig() const; 130 nvlist_t *Config() const; 144 nvlist_t *m_poolConfig; 145 nvlist_t *m_config; 168 inline nvlist_t * [all...] |
/freebsd/lib/libcasper/services/cap_fileargs/ |
H A D | cap_fileargs.c | 54 nvlist_t *fa_cache; 62 const nvlist_t *nvl; in fileargs_get_lstat_cache() 92 const nvlist_t *nvl; in fileargs_get_fd_cache() 93 nvlist_t *tnvl; in fileargs_get_fd_cache() 130 fileargs_set_cache(fileargs_t *fa, nvlist_t *nvl) in fileargs_set_cache() 137 static nvlist_t* 140 nvlist_t *nvl; in fileargs_fetch() 164 static nvlist_t * 168 nvlist_t *limits; in fileargs_create_limit() 216 nvlist_t *limits; in fileargs_init() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | libzfs_input_check.c | 131 lzc_ioctl_run(zfs_ioc_t ioc, const char *name, nvlist_t *innvl, int expected) in lzc_ioctl_run() 183 lzc_ioctl_test(zfs_ioc_t ioc, const char *name, nvlist_t *required, in lzc_ioctl_test() 184 nvlist_t *optional, int expected_error, boolean_t wildcard) in lzc_ioctl_test() 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() 268 nvlist_t *required = fnvlist_alloc(); in test_pool_sync() 280 nvlist_t *optional = fnvlist_alloc(); in test_pool_reopen() 307 nvlist_t *required = fnvlist_alloc(); in test_log_history() 323 nvlist_t *required = fnvlist_alloc(); in test_create() [all …]
|
/freebsd/lib/libnv/tests/ |
H A D | dnv_tests.cc | 36 nvlist_t *nvl; in ATF_TEST_CASE_BODY() 55 nvlist_t *nvl; in ATF_TEST_CASE_BODY() 75 nvlist_t *nvl; in ATF_TEST_CASE_BODY() 94 nvlist_t *nvl; in ATF_TEST_CASE_BODY() 113 nvlist_t *nvl; in ATF_TEST_CASE_BODY() 134 nvlist_t *nvl; in ATF_TEST_CASE_BODY() 158 nvlist_t *nvl; in ATF_TEST_CASE_BODY() 160 nvlist_t *value; in ATF_TEST_CASE_BODY() 161 const nvlist_t *actual_value; in ATF_TEST_CASE_BODY() 179 nvlist_t *nvl; in ATF_TEST_CASE_BODY() [all …]
|