/illumos-gate/usr/src/uts/common/sys/ |
H A D | nvpair.h | 96 } nvlist_t; typedef 155 int nvlist_alloc(nvlist_t **, uint_t, int); 156 void nvlist_free(nvlist_t *); 157 int nvlist_size(nvlist_t *, size_t *, int); 158 int nvlist_pack(nvlist_t *, char **, size_t *, int, int); 159 int nvlist_unpack(char *, size_t, nvlist_t **, int); 160 int nvlist_dup(nvlist_t *, nvlist_t **, int); 161 int nvlist_merge(nvlist_t *, nvlist_t *, int); 163 uint_t nvlist_nvflag(nvlist_t *); 165 int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *); [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip.h | 124 nvlist_t *, nvlist_t **); 126 nvlist_t *, nvlist_t **); 128 nvlist_t *, nvlist_t **); 129 extern int g4_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 130 nvlist_t **); 132 extern int g12f_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 133 nvlist_t **); 136 nvlist_t *, nvlist_t **); 138 nvlist_t *, nvlist_t **); 140 nvlist_t *, nvlist_t **); [all …]
|
/illumos-gate/usr/src/lib/libzfs_core/common/ |
H A D | libzfs_core.h | 54 int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **); 55 int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *, uint8_t *, 57 int lzc_clone(const char *, const char *, nvlist_t *); 59 int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **); 60 int lzc_bookmark(nvlist_t *, nvlist_t **); 61 int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **); 62 int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **); 63 int lzc_initialize(const char *, pool_initialize_func_t, nvlist_t *, 64 nvlist_t **); 66 nvlist_t *, nvlist_t **); [all …]
|
H A D | libzfs_core.c | 172 nvlist_t *source, nvlist_t **resultp) in lzc_ioctl() 248 lzc_create(const char *fsname, enum lzc_dataset_type type, nvlist_t *props, in lzc_create() 252 nvlist_t *hidden_args = NULL; in lzc_create() 253 nvlist_t *args = fnvlist_alloc(); in lzc_create() 273 lzc_clone(const char *fsname, const char *origin, nvlist_t *props) in lzc_clone() 276 nvlist_t *hidden_args = NULL; in lzc_clone() 277 nvlist_t *args = fnvlist_alloc(); in lzc_clone() 314 nvlist_t *args = fnvlist_alloc(); in lzc_remap() 342 nvlist_t *args = fnvlist_alloc(); in lzc_destroy() 364 lzc_snapshot(nvlist_t *snaps, nvlist_t *props, nvlist_t **errlist) in lzc_snapshot() [all …]
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | libzfs.h | 71 } nvlist_t; typedef 105 nvlist_t *nvlist_create(int); 106 void nvlist_destroy(nvlist_t *); 107 nvlist_t *nvlist_import(const char *, size_t); 108 int nvlist_export(nvlist_t *); 109 int nvlist_remove(nvlist_t *, const char *, data_type_t); 111 nvp_header_t *nvpair_find(nvlist_t *, const char *); 113 void nvlist_print(const nvlist_t *, unsigned int); 115 int nvlist_find(const nvlist_t *, const char *, data_type_t, 117 nvp_header_t *nvlist_next_nvpair(nvlist_t *, nvp_header_t *); [all …]
|
/illumos-gate/usr/src/common/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(nvlist_t *nvl) in fnvlist_dup() 107 nvlist_t *rv; in fnvlist_dup() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_protocol.h | 68 extern nvlist_t *fmd_protocol_authority(void); 69 extern nvlist_t *fmd_protocol_fmri_module(struct fmd_module *); 70 extern nvlist_t *fmd_protocol_fault(const char *, 71 uint8_t, nvlist_t *, nvlist_t *, nvlist_t *, const char *); 72 extern nvlist_t *fmd_protocol_list(const char *, nvlist_t *, 73 const char *, const char *, uint_t, nvlist_t **, uint8_t *, int, 75 extern nvlist_t *fmd_protocol_rsrc_asru(const char *, nvlist_t *, 76 const char *, const char *, boolean_t, boolean_t, boolean_t, nvlist_t *, 77 struct timeval *m, boolean_t, boolean_t, boolean_t, boolean_t, nvlist_t *, 79 extern nvlist_t *fmd_protocol_fmderror(int, const char *, va_list); [all …]
|
H A D | fmd_api.h | 104 void (*fmdo_recv)(fmd_hdl_t *, fmd_event_t *, nvlist_t *, const char *); 109 int (*fmdo_send)(fmd_hdl_t *, fmd_xprt_t *, fmd_event_t *, nvlist_t *); 189 extern void fmd_case_add_suspect(fmd_hdl_t *, fmd_case_t *, nvlist_t *); 227 extern nvlist_t *fmd_nvl_create_defect(fmd_hdl_t *, 228 const char *, uint8_t, nvlist_t *, nvlist_t *, nvlist_t *); 229 extern nvlist_t *fmd_nvl_create_fault(fmd_hdl_t *, 230 const char *, uint8_t, nvlist_t *, nvlist_t *, nvlist_t *); 232 extern const nvlist_t *fmd_hdl_fmauth(fmd_hdl_t *); 233 extern const nvlist_t *fmd_hdl_modauth(fmd_hdl_t *); 235 extern int fmd_nvl_class_match(fmd_hdl_t *, nvlist_t *, const char *); [all …]
|
H A D | fmd_fmri.h | 71 extern char *fmd_fmri_auth2str(nvlist_t *); 89 extern ssize_t fmd_fmri_nvl2str(nvlist_t *, char *, size_t); 90 extern int fmd_fmri_expand(nvlist_t *); 91 extern int fmd_fmri_present(nvlist_t *); 92 extern int fmd_fmri_replaced(nvlist_t *); 93 extern int fmd_fmri_service_state(nvlist_t *); 94 extern int fmd_fmri_unusable(nvlist_t *); 95 extern int fmd_fmri_retire(nvlist_t *); 96 extern int fmd_fmri_unretire(nvlist_t *); 97 extern int fmd_fmri_contains(nvlist_t *, nvlist_t *); [all …]
|
H A D | fmd_scheme.h | 45 ssize_t (*sop_nvl2str)(nvlist_t *, char *, size_t); 46 int (*sop_expand)(nvlist_t *); 47 int (*sop_present)(nvlist_t *); 48 int (*sop_replaced)(nvlist_t *); 49 int (*sop_service_state)(nvlist_t *); 50 int (*sop_unusable)(nvlist_t *); 51 int (*sop_contains)(nvlist_t *, nvlist_t *); 52 nvlist_t *(*sop_translate)(nvlist_t *, nvlist_t *);
|
H A D | fmd_protocol.c | 45 nvlist_t * 49 nvlist_t *nvl; in fmd_protocol_authority() 85 nvlist_t * 88 nvlist_t *nvl; in fmd_protocol_fmri_module() 113 nvlist_t * 115 nvlist_t *asru, nvlist_t *fru, nvlist_t *resource, const char *location) in fmd_protocol_fault() 117 nvlist_t *nvl; in fmd_protocol_fault() 142 nvlist_t * 143 fmd_protocol_list(const char *class, nvlist_t *de_fmri, const char *uuid, in fmd_protocol_list() 144 const char *code, uint_t argc, nvlist_t **argv, uint8_t *flagv, int domsg, in fmd_protocol_list() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma.h | 49 nvlist_t *pg_rsrc; /* Resource for this page */ 50 nvlist_t *pg_asru; /* ASRU for this page */ 59 nvlist_t *cpu_fmri; /* FMRI for this cpu entry */ 110 extern int cma_cpu_cpu_retire(fmd_hdl_t *, nvlist_t *, nvlist_t *, 112 extern int cma_cpu_hc_retire(fmd_hdl_t *, nvlist_t *, nvlist_t *, 114 extern int cma_page_retire(fmd_hdl_t *, nvlist_t *, nvlist_t *, 120 extern int cma_cache_way_retire(fmd_hdl_t *, nvlist_t *, nvlist_t *, 125 extern int cma_cpu_blacklist(fmd_hdl_t *, nvlist_t *, nvlist_t *, boolean_t); 126 extern int cma_cpu_statechange(fmd_hdl_t *, nvlist_t *, const char *, int, 128 extern int cma_fmri_page_service_state(fmd_hdl_t *, nvlist_t *); [all …]
|
/illumos-gate/usr/src/compat/bhyve/sys/ |
H A D | nv.h | 26 nvlist_next(const nvlist_t *nvl, int *type, void **cookie) in nvlist_next() 30 nvp = nvlist_next_nvpair((nvlist_t *)nvl, nvp); in nvlist_next() 39 static inline nvlist_t * 42 nvlist_t *nvl; in nvlist_create() 56 nvlist_exists_nvlist(const nvlist_t *nvl, const char *name) in nvlist_exists_nvlist() 58 nvlist_t *snvl; in nvlist_exists_nvlist() 60 return (nvlist_lookup_nvlist((nvlist_t *)nvl, name, &snvl) == 0); in nvlist_exists_nvlist() 63 static inline nvlist_t * 64 nvlist_get_nvlist(const nvlist_t *nvl, const char *name) in nvlist_get_nvlist() 66 nvlist_t *snvl; in nvlist_get_nvlist() [all …]
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs.h | 257 extern int zpool_create(libzfs_handle_t *, const char *, nvlist_t *, 258 nvlist_t *, nvlist_t *); 260 extern int zpool_add(zpool_handle_t *, nvlist_t *); 287 nvlist_t *); 288 extern int zpool_trim(zpool_handle_t *, pool_trim_func_t, nvlist_t *, 291 extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *); 301 const char *, nvlist_t *, int); 306 extern int zpool_vdev_split(zpool_handle_t *, char *, nvlist_t **, nvlist_t *, 313 extern nvlist_t *zpool_find_vdev(zpool_handle_t *, const char *, boolean_t *, 315 extern nvlist_t *zpool_find_vdev_by_physpath(zpool_handle_t *, const char *, [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | libtopo.h | 67 nvlist_t *tsp_fmri; 135 extern int topo_fmri_present(topo_hdl_t *, nvlist_t *, int *); 136 extern int topo_fmri_replaced(topo_hdl_t *, nvlist_t *, int *); 137 extern int topo_fmri_contains(topo_hdl_t *, nvlist_t *, nvlist_t *, int *); 138 extern int topo_fmri_expand(topo_hdl_t *, nvlist_t *, int *); 139 extern int topo_fmri_unusable(topo_hdl_t *, nvlist_t *, int *); 140 extern int topo_fmri_service_state(topo_hdl_t *, nvlist_t *, int *); 141 extern int topo_fmri_retire(topo_hdl_t *, nvlist_t *, int *); 142 extern int topo_fmri_unretire(topo_hdl_t *, nvlist_t *, int *); 143 extern int topo_fmri_nvl2str(topo_hdl_t *, nvlist_t *, char **, int *); [all …]
|
H A D | topo_mod.h | 51 typedef int topo_method_f(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 52 nvlist_t **); 91 extern nvlist_t *topo_mod_cpufmri(topo_mod_t *, int, uint32_t, uint8_t, 93 extern nvlist_t *topo_mod_devfmri(topo_mod_t *, int, const char *, 95 extern nvlist_t *topo_mod_hcfmri(topo_mod_t *, tnode_t *, int, const char *, 96 topo_instance_t, nvlist_t *, nvlist_t *, const char *, const char *, 98 extern nvlist_t *topo_mod_memfmri(topo_mod_t *, int, uint64_t, uint64_t, 100 extern nvlist_t *topo_mod_modfmri(topo_mod_t *, int, const char *); 101 extern nvlist_t *topo_mod_pkgfmri(topo_mod_t *, int, const char *); 102 extern nvlist_t *topo_mod_swfmri(topo_mod_t *, int, [all …]
|
H A D | hc.c | 58 nvlist_t *, nvlist_t **); 60 nvlist_t *, nvlist_t **); 61 static int hc_compare(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 62 nvlist_t **); 63 static int hc_fmri_present(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 64 nvlist_t **); 65 static int hc_fmri_replaced(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 66 nvlist_t **); 67 static int hc_fmri_unusable(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *, 68 nvlist_t **); [all …]
|
/illumos-gate/usr/src/uts/common/sys/fm/ |
H A D | protocol.h | 345 extern nvlist_t *fm_nvlist_create(nv_alloc_t *); 346 extern void fm_nvlist_destroy(nvlist_t *, int); 351 extern void fm_ereport_set(nvlist_t *, int, const char *, uint64_t, 352 const nvlist_t *, ...); 353 extern void fm_payload_set(nvlist_t *, ...); 354 extern int i_fm_payload_set(nvlist_t *, const char *, va_list); 355 extern void fm_fmri_hc_set(nvlist_t *, int, const nvlist_t *, nvlist_t *, 357 extern void fm_fmri_dev_set(nvlist_t *, int, const nvlist_t *, const char *, 359 extern void fm_fmri_de_set(nvlist_t *, int, const nvlist_t *, const char *); 360 extern void fm_fmri_cpu_set(nvlist_t *, int, const nvlist_t *, uint32_t, [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
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);
|
/illumos-gate/usr/src/uts/common/sys/iscsit/ |
H A D | iscsit_common.h | 188 nvlist_t *tgt_properties; 262 nvlist_t *ini_properties; 343 nvlist_t *config_global_properties; 349 it_config_to_nv(it_config_t *cfg, nvlist_t **nvl); 358 it_nv_to_config(nvlist_t *nvl, it_config_t **cfg); 361 it_nv_to_tgtlist(nvlist_t *nvl, uint32_t *count, it_tgt_t **tgtlist); 364 it_tgtlist_to_nv(it_tgt_t *tgtlist, nvlist_t **nvl); 367 it_tgt_to_nv(it_tgt_t *tgt, nvlist_t **nvl); 370 it_nv_to_tgt(nvlist_t *nvl, char *name, it_tgt_t **tgt); 373 it_tpgt_to_nv(it_tpgt_t *tpgt, nvlist_t **nvl); [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fabric-xlate.h | 67 nvlist_t *nvl; 168 int (*fab_prep)(fmd_hdl_t *, fab_data_t *, nvlist_t *, 176 extern void fab_xlate_fabric_erpts(fmd_hdl_t *, nvlist_t *, const char *); 177 extern void fab_xlate_fire_erpts(fmd_hdl_t *, nvlist_t *, const char *); 178 extern void fab_xlate_epkt_erpts(fmd_hdl_t *, nvlist_t *, const char *); 181 extern int fab_prep_basic_erpt(fmd_hdl_t *, nvlist_t *, nvlist_t *, boolean_t); 187 extern void fab_pr(fmd_hdl_t *, fmd_event_t *, nvlist_t *); 188 extern boolean_t fab_get_hcpath(fmd_hdl_t *, nvlist_t *, char **, size_t *); 189 extern boolean_t fab_get_rcpath(fmd_hdl_t *, nvlist_t *, char *); 190 extern char *fab_find_rppath_by_df(fmd_hdl_t *, nvlist_t *, uint8_t); [all …]
|
/illumos-gate/usr/src/common/mc/imc/ |
H A D | imc_dump.c | 30 static nvlist_t * 34 nvlist_t *nvl; in imc_dump_sad() 35 nvlist_t *rules[IMC_MAX_SAD_RULES]; in imc_dump_sad() 36 nvlist_t *routes[IMC_MAX_SAD_MCROUTES]; in imc_dump_sad() 45 nvlist_t *n = fnvlist_alloc(); in imc_dump_sad() 71 nvlist_t *r = fnvlist_alloc(); in imc_dump_sad() 87 static nvlist_t * 91 nvlist_t *nvl; in imc_dump_tad() 92 nvlist_t *rules[IMC_MAX_TAD_RULES]; in imc_dump_tad() 98 nvlist_t *t = fnvlist_alloc(); in imc_dump_tad() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | disks_private.h | 158 nvlist_t *alias_get_attributes(descriptor_t *desc, int *errp); 159 nvlist_t *alias_get_stats(descriptor_t *desc, int stat_type, int *errp); 167 nvlist_t *bus_get_attributes(descriptor_t *desc, int *errp); 168 nvlist_t *bus_get_stats(descriptor_t *desc, int stat_type, 177 nvlist_t *controller_get_attributes(descriptor_t *desc, int *errp); 178 nvlist_t *controller_get_stats(descriptor_t *desc, int stat_type, 188 nvlist_t *drive_get_attributes(descriptor_t *desc, int *errp); 189 nvlist_t *drive_get_stats(descriptor_t *desc, int stat_type, int *errp); 199 nvlist_t *media_get_attributes(descriptor_t *desc, int *errp); 200 nvlist_t *media_get_stats(descriptor_t *desc, int stat_type, int *errp); [all …]
|
/illumos-gate/usr/src/cmd/fm/schemes/hc/ |
H A D | scheme.c | 42 fmd_fmri_nvl2str(nvlist_t *nvl, char *buf, size_t buflen) in fmd_fmri_nvl2str() 73 fmd_fmri_present(nvlist_t *nvl) in fmd_fmri_present() 77 nvlist_t **hcprs; in fmd_fmri_present() 97 fmd_fmri_replaced(nvlist_t *nvl) in fmd_fmri_replaced() 101 nvlist_t **hcprs; in fmd_fmri_replaced() 121 fmd_fmri_unusable(nvlist_t *nvl) in fmd_fmri_unusable() 125 nvlist_t **hcprs; in fmd_fmri_unusable() 143 auth_compare(nvlist_t *nvl1, nvlist_t *nvl2) in auth_compare() 155 nvlist_t *auth1 = NULL, *auth2 = NULL; in auth_compare() 179 hclist_contains(nvlist_t **erhcl, uint_t erhclsz, nvlist_t **eehcl, in hclist_contains() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | attrat.c | 43 static int (*nvpacker)(nvlist_t *, char **, size_t *, int, int); 44 static int (*nvsize)(nvlist_t *, size_t *, int); 45 static int (*nvunpacker)(char *, size_t, nvlist_t **); 46 static int (*nvfree)(nvlist_t *); 47 static int (*nvlookupint64)(nvlist_t *, const char *, uint64_t *); 94 nvpacker = (int (*)(nvlist_t *, char **, size_t *, int, int)) in attrat_init() 96 nvsize = (int (*)(nvlist_t *, size_t *, int)) in attrat_init() 98 nvunpacker = (int (*)(char *, size_t, nvlist_t **)) in attrat_init() 100 nvfree = (int (*)(nvlist_t *)) in attrat_init() 102 nvlookupint64 = (int (*)(nvlist_t *, const char *, uint64_t *)) in attrat_init() [all …]
|