/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/ |
H A D | _nvlist.py | 75 nvlist = _ffi.gc(nvlistp[0], _lib.nvlist_free) 76 _dict_to_nvlist(props, nvlist) 77 return nvlist 170 def _nvlist_add_array(nvlist, key, array): argument 209 ret = _lib.nvlist_add_nvlist_array(nvlist, key, c_array, len(c_array)) 214 ret = _lib.nvlist_add_string_array(nvlist, key, c_array, len(c_array)) 216 ret = _lib.nvlist_add_boolean_array(nvlist, key, array, len(array)) 220 ret = cfunc(nvlist, key, array, len(array)) 225 ret = cfunc(nvlist, key, array, len(array)) 232 def _nvlist_to_dict(nvlist, props): argument [all …]
|
H A D | _libzfs_core.py | 125 nvlist = nvlist_in(props) 126 ret = _lib.lzc_create(name, ds_type, nvlist, key, len(key)) 160 nvlist = nvlist_in(props) 161 ret = _lib.lzc_clone(name, origin, nvlist) 334 nvlist = nvlist_in(bookmarks) 336 ret = _lib.lzc_bookmark(nvlist, errlist_nvlist) 371 nvlist = nvlist_in(props_dict) 373 ret = _lib.lzc_get_bookmarks(fsname, nvlist, bmarks_nvlist) 400 nvlist = nvlist_in(bmarks_dict) 402 ret = _lib.lzc_destroy_bookmarks(nvlist, errlist_nvlist) [all …]
|
/freebsd/sbin/zfsbootcfg/ |
H A D | zfsbootcfg.c | 44 add_pair(const char *name, const char *nvlist, const char *key, in add_pair() argument 52 rv = lzbe_nvlist_get(name, nvlist, &nv); in add_pair() 154 rv = lzbe_nvlist_set(name, nvlist, nv); in add_pair() 162 delete_pair(const char *name, const char *nvlist, const char *key) in delete_pair() argument 167 rv = lzbe_nvlist_get(name, nvlist, &nv); in delete_pair() 172 rv = lzbe_nvlist_set(name, nvlist, nv); in delete_pair() 189 const char *key, *value, *type, *nvlist; in main() local 193 nvlist = NULL; in main() 209 nvlist = optarg; in main() 261 rv = delete_pair(name, nvlist, key); in main() [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pci_iov.h | 32 struct nvlist; 34 int pci_iov_attach_name(device_t dev, struct nvlist *pf_schema, 35 struct nvlist *vf_schema, const char *fmt, ...) __printflike(4, 5); 38 pci_iov_attach(device_t dev, struct nvlist *pf_schema, struct nvlist *vf_schema) in pci_iov_attach()
|
H A D | pci_iov_if.m | 33 struct nvlist; 40 const struct nvlist *config; 50 const struct nvlist *config;
|
/freebsd/sys/dev/sound/pcm/ |
H A D | sndstat.c | 848 sndstat_dsp_nvlist_is_sane(const nvlist_t *nvlist) in sndstat_dsp_nvlist_is_sane() argument 850 if (!(nvlist_exists_string(nvlist, SNDST_DSPS_DEVNODE) && in sndstat_dsp_nvlist_is_sane() 851 nvlist_exists_string(nvlist, SNDST_DSPS_DESC) && in sndstat_dsp_nvlist_is_sane() 852 nvlist_exists_number(nvlist, SNDST_DSPS_PCHAN) && in sndstat_dsp_nvlist_is_sane() 853 nvlist_exists_number(nvlist, SNDST_DSPS_RCHAN))) in sndstat_dsp_nvlist_is_sane() 856 if (nvlist_get_number(nvlist, SNDST_DSPS_PCHAN) > 0) { in sndstat_dsp_nvlist_is_sane() 857 if (nvlist_exists_nvlist(nvlist, SNDST_DSPS_INFO_PLAY)) { in sndstat_dsp_nvlist_is_sane() 858 if (!sndstat_diinfo_is_sane(nvlist_get_nvlist(nvlist, in sndstat_dsp_nvlist_is_sane() 861 } else if (!(nvlist_exists_number(nvlist, "pminrate") && in sndstat_dsp_nvlist_is_sane() 862 nvlist_exists_number(nvlist, "pmaxrate") && in sndstat_dsp_nvlist_is_sane() [all …]
|
/freebsd/stand/libsa/zfs/ |
H A D | nvlist.c | 406 nvlist_t nvlist; in nvlist_xdr_nvp() local 424 bzero(&nvlist, sizeof(nvlist)); in nvlist_xdr_nvp() 425 nvlist.nv_data = xdr->xdr_idx; in nvlist_xdr_nvp() 426 nvlist.nv_idx = nvlist.nv_data; in nvlist_xdr_nvp() 430 nv_xdr.xdr_buf = nvlist.nv_data; in nvlist_xdr_nvp() 431 nv_xdr.xdr_idx = nvlist.nv_data; in nvlist_xdr_nvp() 433 nvl->nv_data + nvl->nv_size - nvlist.nv_data; in nvlist_xdr_nvp() 438 &nvlist.nv_size)) in nvlist_xdr_nvp() 442 &nvlist.nv_size)) in nvlist_xdr_nvp() 445 if (nvlist_xdr_nvlist(xdr, &nvlist) != 0) in nvlist_xdr_nvp() [all …]
|
H A D | zfsimpl.c | 882 vdev_set_initial_state(vdev_t *vdev, const nvlist_t *nvlist) in vdev_set_initial_state() argument 889 (void) nvlist_find(nvlist, ZPOOL_CONFIG_OFFLINE, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 891 (void) nvlist_find(nvlist, ZPOOL_CONFIG_REMOVED, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 893 (void) nvlist_find(nvlist, ZPOOL_CONFIG_FAULTED, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 895 (void) nvlist_find(nvlist, ZPOOL_CONFIG_DEGRADED, DATA_TYPE_UINT64, in vdev_set_initial_state() 897 (void) nvlist_find(nvlist, ZPOOL_CONFIG_NOT_PRESENT, DATA_TYPE_UINT64, in vdev_set_initial_state() 899 (void) nvlist_find(nvlist, ZPOOL_CONFIG_IS_LOG, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 917 vdev_init(uint64_t guid, const nvlist_t *nvlist, vdev_t **vdevp) in vdev_init() argument 926 if (nvlist_find(nvlist, ZPOOL_CONFIG_ID, DATA_TYPE_UINT64, NULL, &id, in vdev_init() 928 nvlist_find(nvlist, ZPOOL_CONFIG_TYPE, DATA_TYPE_STRING, NULL, in vdev_init() [all …]
|
H A D | Makefile.inc | 10 ZFS_SRC= zfs.c nvlist.c skein.c skein_block.c list.c 53 CFLAGS_EARLY.nvlist.c+= ${ZFS_EARLY}
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | dsl_destroy.h | 34 struct nvlist; 39 int dsl_destroy_snapshots_nvl(struct nvlist *, boolean_t, 40 struct nvlist *);
|
/freebsd/sys/contrib/openzfs/contrib/pam_zfs_key/ |
H A D | pam_zfs_key.c | 252 const char *passphrase, nvlist_t *nvlist) in prepare_passphrase() argument 260 if (nvlist != NULL) { in prepare_passphrase() 281 if (nvlist_add_uint64(nvlist, in prepare_passphrase() 289 if (nvlist_add_uint64(nvlist, zfs_prop_to_name( in prepare_passphrase() 335 nvlist_t *nvlist = fnvlist_alloc(); in change_key() local 336 pw_password_t *key = prepare_passphrase(pamh, ds, passphrase, nvlist); in change_key() 338 nvlist_free(nvlist); in change_key() 342 if (nvlist_add_string(nvlist, in change_key() 347 nvlist_free(nvlist); in change_key() 351 if (nvlist_add_uint64(nvlist, in change_key() [all …]
|
/freebsd/sys/sys/ |
H A D | _nv.h | 40 struct nvlist; 42 typedef struct nvlist nvlist_t;
|
/freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
H A D | lzbe_util.c | 24 lzbe_bootenv_print(const char *pool, const char *nvlist, FILE *of) in lzbe_bootenv_print() argument 32 rv = lzbe_nvlist_get(pool, nvlist, (void **)&nv); in lzbe_bootenv_print()
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | zfsd_exception.h | 51 struct nvlist; 52 typedef struct nvlist nvlist_t;
|
H A D | vdev_iterator.h | 49 struct nvlist; 50 typedef struct nvlist nvlist_t;
|
H A D | zpool_list.h | 54 struct nvlist; 55 typedef struct nvlist nvlist_t;
|
H A D | zfsd.h | 68 struct nvlist; 69 typedef struct nvlist nvlist_t;
|
H A D | zfsd_event.h | 58 struct nvlist; 59 typedef struct nvlist nvlist_t;
|
H A D | vdev.h | 52 struct nvlist; 53 typedef struct nvlist nvlist_t;
|
H A D | vdev_iterator.cc | 78 nvlist **cache_child; in Reset() 79 nvlist **spare_child; in Reset()
|
/freebsd/usr.sbin/ctladm/ |
H A D | ctladm.c | 3871 struct cctl_nvlist_data *nvlist; in cctl_nvlist_start_element() local 3874 nvlist = (struct cctl_nvlist_data *)user_data; in cctl_nvlist_start_element() 3875 cur_conn = nvlist->cur_conn; in cctl_nvlist_start_element() 3876 nvlist->level++; in cctl_nvlist_start_element() 3877 if ((u_int)nvlist->level >= nitems(nvlist->cur_sb)) in cctl_nvlist_start_element() 3879 nitems(nvlist->cur_sb)); in cctl_nvlist_start_element() 3881 nvlist->cur_sb[nvlist->level] = sbuf_new_auto(); in cctl_nvlist_start_element() 3882 if (nvlist->cur_sb[nvlist->level] == NULL) in cctl_nvlist_start_element() 3895 nvlist->num_conns++; in cctl_nvlist_start_element() 3896 nvlist->cur_conn = cur_conn; in cctl_nvlist_start_element() [all …]
|
/freebsd/usr.sbin/makefs/zfs/ |
H A D | Makefile.inc | 10 SRCS+= nvlist.c 12 CFLAGS.nvlist.c+= -I${SRCTOP}/stand/libsa -Wno-cast-qual
|
/freebsd/lib/libcasper/libcasper/ |
H A D | libcasper_service.h | 38 struct nvlist; 40 typedef struct nvlist nvlist_t;
|
/freebsd/sys/contrib/libnv/ |
H A D | cnvlist.c | 87 CNVLIST_GET(const nvlist_t *, nvlist, NVLIST) in CNVLIST_GET() 146 CNVLIST_TAKE(nvlist_t *, nvlist, NVLIST) 208 CNVLIST_FREE(nvlist)
|
H A D | dnvlist.c | 70 DNVLIST_GET(const nvlist_t *, nvlist) in DNVLIST_GET() 107 DNVLIST_TAKE(nvlist_t *, nvlist) in DNVLIST_TAKE()
|