| /freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/ |
| H A D | _nvlist.py | 76 nvlist = _ffi.gc(nvlistp[0], _lib.nvlist_free) 77 _dict_to_nvlist(props, nvlist) 78 return nvlist 171 def _nvlist_add_array(nvlist, key, array): argument 210 ret = _lib.nvlist_add_nvlist_array(nvlist, key, c_array, len(c_array)) 215 ret = _lib.nvlist_add_string_array(nvlist, key, c_array, len(c_array)) 217 ret = _lib.nvlist_add_boolean_array(nvlist, key, array, len(array)) 221 ret = cfunc(nvlist, key, array, len(array)) 226 ret = cfunc(nvlist, key, array, len(array)) 233 def _nvlist_to_dict(nvlist, props): argument [all …]
|
| H A D | _libzfs_core.py | 87 nvlist = nvlist_in(props) 88 ret = _lib.lzc_create(name, ds_type, nvlist, key, len(key)) 122 nvlist = nvlist_in(props) 123 ret = _lib.lzc_clone(name, origin, nvlist) 296 nvlist = nvlist_in(bookmarks) 298 ret = _lib.lzc_bookmark(nvlist, errlist_nvlist) 333 nvlist = nvlist_in(props_dict) 335 ret = _lib.lzc_get_bookmarks(fsname, nvlist, bmarks_nvlist) 362 nvlist = nvlist_in(bmarks_dict) 364 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/ |
| H A D | sndstat.c | 859 sndstat_dsp_nvlist_is_sane(const nvlist_t *nvlist) in sndstat_dsp_nvlist_is_sane() argument 861 if (!(nvlist_exists_string(nvlist, SNDST_DSPS_DEVNODE) && in sndstat_dsp_nvlist_is_sane() 862 nvlist_exists_string(nvlist, SNDST_DSPS_DESC) && in sndstat_dsp_nvlist_is_sane() 863 nvlist_exists_number(nvlist, SNDST_DSPS_PCHAN) && in sndstat_dsp_nvlist_is_sane() 864 nvlist_exists_number(nvlist, SNDST_DSPS_RCHAN))) in sndstat_dsp_nvlist_is_sane() 867 if (nvlist_get_number(nvlist, SNDST_DSPS_PCHAN) > 0) { in sndstat_dsp_nvlist_is_sane() 868 if (nvlist_exists_nvlist(nvlist, SNDST_DSPS_INFO_PLAY)) { in sndstat_dsp_nvlist_is_sane() 869 if (!sndstat_diinfo_is_sane(nvlist_get_nvlist(nvlist, in sndstat_dsp_nvlist_is_sane() 872 } else if (!(nvlist_exists_number(nvlist, "pminrate") && in sndstat_dsp_nvlist_is_sane() 873 nvlist_exists_number(nvlist, "pmaxrat in sndstat_dsp_nvlist_is_sane() 906 sndstat_dsp_unpack_nvlist(const nvlist_t * nvlist,struct sndstat_userdev * ud) sndstat_dsp_unpack_nvlist() argument [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 | 893 vdev_set_initial_state(vdev_t *vdev, const nvlist_t *nvlist) in vdev_set_initial_state() argument 900 (void) nvlist_find(nvlist, ZPOOL_CONFIG_OFFLINE, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 902 (void) nvlist_find(nvlist, ZPOOL_CONFIG_REMOVED, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 904 (void) nvlist_find(nvlist, ZPOOL_CONFIG_FAULTED, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 906 (void) nvlist_find(nvlist, ZPOOL_CONFIG_DEGRADED, DATA_TYPE_UINT64, in vdev_set_initial_state() 908 (void) nvlist_find(nvlist, ZPOOL_CONFIG_NOT_PRESENT, DATA_TYPE_UINT64, in vdev_set_initial_state() 910 (void) nvlist_find(nvlist, ZPOOL_CONFIG_IS_LOG, DATA_TYPE_UINT64, NULL, in vdev_set_initial_state() 928 vdev_init(uint64_t guid, const nvlist_t *nvlist, vdev_t **vdevp) in vdev_init() argument 937 if (nvlist_find(nvlist, ZPOOL_CONFIG_ID, DATA_TYPE_UINT64, NULL, &id, in vdev_init() 939 nvlist_find(nvlist, ZPOOL_CONFIG_TYPE, DATA_TYPE_STRING, NULL, in vdev_init() [all …]
|
| /freebsd/sys/contrib/openzfs/include/sys/ |
| H A D | dsl_destroy.h | 35 struct nvlist; 40 int dsl_destroy_snapshots_nvl(struct nvlist *, boolean_t, 41 struct nvlist *);
|
| /freebsd/sys/sys/ |
| H A D | _nv.h | 40 struct nvlist; 42 typedef struct nvlist nvlist_t;
|
| /freebsd/sys/contrib/openzfs/contrib/pam_zfs_key/ |
| H A D | pam_zfs_key.c | 253 const char *passphrase, nvlist_t *nvlist) in prepare_passphrase() argument 261 if (nvlist != NULL) { in prepare_passphrase() 282 if (nvlist_add_uint64(nvlist, in prepare_passphrase() 290 if (nvlist_add_uint64(nvlist, zfs_prop_to_name( in prepare_passphrase() 336 nvlist_t *nvlist = fnvlist_alloc(); in change_key() local 337 pw_password_t *key = prepare_passphrase(pamh, ds, passphrase, nvlist); in change_key() 339 nvlist_free(nvlist); in change_key() 343 if (nvlist_add_string(nvlist, in change_key() 348 nvlist_free(nvlist); in change_key() 352 if (nvlist_add_uint64(nvlist, in change_key() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
| H A D | lzbe_util.c | 25 lzbe_bootenv_print(const char *pool, const char *nvlist, FILE *of) in lzbe_bootenv_print() argument 33 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/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/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/sys/contrib/libnv/ |
| H A D | cnvlist.c | 86 CNVLIST_GET(const nvlist_t *, nvlist, NVLIST) in CNVLIST_GET() 145 CNVLIST_TAKE(nvlist_t *, nvlist, NVLIST) 207 CNVLIST_FREE(nvlist)
|
| H A D | dnvlist.c | 69 DNVLIST_GET(const nvlist_t *, nvlist) in DNVLIST_GET() 106 DNVLIST_TAKE(nvlist_t *, nvlist) in DNVLIST_TAKE()
|
| /freebsd/sys/contrib/openzfs/lib/libzpool/ |
| H A D | kernel.c | 344 nvlist_t *nvlist, *child; in spa_config_load() local 383 if (nvlist_unpack(buf, fsize, &nvlist, KM_SLEEP) != 0) in spa_config_load() 392 while ((nvpair = nvlist_next_nvpair(nvlist, nvpair)) != NULL) { in spa_config_load() 404 nvlist_free(nvlist); in spa_config_load()
|