/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | defaults.c | 66 * df_build_cache(): builds the defaults nvlist cache 69 * output: a pointer to an nvlist of the current defaults, or NULL on failure 79 nvlist_t *nvlist; local 85 if (nvlist_alloc(&nvlist, NV_UNIQUE_NAME, 0) != 0) { 133 if (nvlist_add_string(nvlist, &entry[i], value) != 0) { 136 nvlist_free(nvlist); 137 nvlist = NULL; 143 return (nvlist);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | nvpair.c | 46 nvlist_t nvlist; local 55 if (mdb_vread(&nvlist, sizeof (nvlist), wsp->walk_addr) == -1) { 56 mdb_warn("failed to read nvlist at %p", wsp->walk_addr); 60 if (mdb_vread(&nvpriv, sizeof (nvpriv), nvlist.nvl_priv) == -1) { 61 mdb_warn("failed to read nvpriv at %p", nvlist.nvl_priv); 94 * ::nvlist [-v] 96 * Print out an entire nvlist. This is shorthand for '::walk nvpair | 126 * -r Recursively print any nvlist elements
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | events.c | 350 nvlist_t *nvlist = NULL; local 353 (void) sysevent_get_attr_list(ev, &nvlist); 354 if (nvlist != NULL) { 355 (void) nvlist_lookup_string(nvlist, DEV_NAME, &dev_name); 358 print_nvlist("**** ", nvlist); 366 if (nvlist != NULL) { 367 nvlist_free(nvlist);
|
/illumos-gate/usr/src/lib/libfru/libnvfru/ |
H A D | nvfru.c | 326 /* create a new nvlist for each segment */ 333 /* convert the segment to an nvlist */ 341 /* add the nvlist for this segment */ 351 convert_fru(fru_nodehdl_t hdl, nvlist_t **nvlist) argument 376 *nvlist = nv; 384 nvlist_t **nvlist) 403 err = convert_fru(hdl, nvlist); 383 rawfru_to_nvlist(uint8_t *buffer, size_t bufsize, char *cont_type, nvlist_t **nvlist) argument
|
/illumos-gate/usr/src/cmd/picl/plugins/common/piclevent/ |
H A D | picl_slm.c | 54 char *nvq_item; /* packed nvlist */ 249 nvlist_t *nvlist = NULL; local 253 if (sysevent_get_attr_list(ev, &nvlist)) { 257 if (nvlist_lookup_string(nvlist, DR_AP_ID, &ap_id) != 0 || 259 nvlist_free(nvlist); 264 nvlist_free(nvlist); 269 if (nvlist_lookup_string(nvlist, DR_REQ_TYPE, &dr_req) != 0) 274 nvlist_free(nvlist); 282 nvlist_free(nvlist);
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | pool_rcm.c | 229 gettext("POOL: unable to find 'old_total' in nvlist: %s\n"), 238 gettext("POOL: unable to find 'new_total' in nvlist: %s\n"), 265 gettext("POOL: 'old_cpu_list' not found in nvlist: %s\n"), 280 gettext("POOL: 'new_cpu_list' not found in nvlist: %s\n"), 360 uint_t flags, nvlist_t *nvlist, char **errorp, rcm_info_t **dependent_info) 375 return ((*registrations[i].capacity_change_cb)(nvlist, 385 uint_t flags, nvlist_t *nvlist, char **info, rcm_info_t **dependent_info) 359 pool_request_capacity_change(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, nvlist_t *nvlist, char **errorp, rcm_info_t **dependent_info) argument 384 pool_notify_capacity_change(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, nvlist_t *nvlist, char **info, rcm_info_t **dependent_info) argument
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_config.c | 48 * Pool configuration is stored as a packed nvlist on the filesystem. By 54 * For each cache file, we have a single nvlist which holds all the 79 nvlist_t *nvlist, *child; local 106 * Read the nvlist from the file. 112 * Unpack the nvlist. 114 if (nvlist_unpack(buf, fsize, &nvlist, KM_SLEEP) != 0) 118 * Iterate over all elements in the nvlist, creating a new spa_t for 123 while ((nvpair = nvlist_next_nvpair(nvlist, nvpair)) != NULL) { 135 nvlist_free(nvlist); 155 * If the nvlist i [all...] |
H A D | zfs_ioctl.c | 110 * The input nvlist, deserialized from zfs_cmd_t:zc_nvlist_src. Or 111 * NULL if no input nvlist was provided. Changes to this nvlist are 112 * ignored. If the input nvlist could not be deserialized, the 116 * The output nvlist, initially empty. The callback can fill it in, 123 * There are two typical uses of the output nvlist: 979 * Check for permission to create each snapshot in the nvlist. 1010 * Check for permission to create each snapshot in the nvlist. 1298 * Returns the nvlist as specified by the user in the zfs_cmd_t. 1308 * Read in and unpack the user-supplied nvlist 5102 nvlist_t *nvlist; local [all...] |
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventconfd/ |
H A D | syseventconfd.c | 40 * The events and associated nvlist are delivered via a door upcall 245 nvlist_t *nvlist; local 248 nvlist = NULL; 249 if (sysevent_get_attr_list(event, &nvlist) != 0) { 254 if ((cmd = alloc_cmd(nvlist)) != NULL) { 268 nvlist_free(nvlist); 274 * All command attributes are packed into the nvlist bundled with 605 alloc_cmd(nvlist_t *nvlist) argument 611 if (nvlist_dup(nvlist, &cmd->cmd_nvlist, 0) != 0) {
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | nvpair.h | 88 /* nvlist header */ 89 typedef struct nvlist { struct 100 /* nvlist pack encoding */ 104 /* nvlist persistent unique name flags, stored in nvl_nvflags */ 108 /* nvlist lookup pairs related flags */
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | pool.c | 947 pool_propput_common(nvlist_t *nvlist, nvpair_t *pair, pool_property_t *props) argument 959 return (nvlist_add_nvpair(nvlist, pair)); 966 pool_proprm_common(nvlist_t *nvlist, char *name, pool_property_t *props) argument 974 return (nvlist_remove_all(nvlist, name));
|
H A D | evchannels.c | 1761 * sysevent_evc_setpropnvl - Set channel property nvlist 1762 * sysevent_evc_getpropnvl - Get channel property nvlist 1955 * has enough room for the packed nvlist. 2154 sysevent_get_attr_list(sysevent_t *ev, nvlist_t **nvlist) argument 2161 *nvlist = NULL; 2170 /* unpack nvlist */ 2173 if ((error = nvlist_unpack(attr, attr_len, nvlist, 0)) != 0) { 2194 * evch_usrsetpropnvl - Set channel properties nvlist 2195 * evch_usrgetpropnvl - Get channel properties nvlist
|
H A D | log_sysevent.c | 445 * Set up the nvlist based data cache. User by lofi to find 610 * Allocate nvlist 1774 nvlist_t *nvlist; local 1784 (void) sysevent_get_attr_list(ev, &nvlist); 1785 driver = fnvlist_lookup_string(nvlist, DEV_DRIVER_NAME); 1786 instance = fnvlist_lookup_int32(nvlist, DEV_INSTANCE); 1790 fnvlist_free(nvlist); 1801 fnvlist_add_nvlist(lofi_devlink_cache.ln_data, name, nvlist); 1809 fnvlist_free(nvlist);
|
H A D | zone.c | 3796 nvlist_t *nvlist; member in struct:zsched_arg 3822 nvlist_t *nvl = za->nvlist; 4693 zarg.nvlist = rctls;
|
/illumos-gate/usr/src/uts/common/io/idm/ |
H A D | idm_text.c | 239 * a corresponding Solaris nvpair_t to the provided nvlist. If the last 359 * the key and value in the nvlist. If we don't recognize 604 /* We'll store the range an an nvlist with two values */ 654 * Now add the "range" nvlist to the main nvlist 730 * Convert an nvlist containing standard iSCSI key names and values into 750 /* Last nvpair in nvlist, we're done */ 790 * the key and value in the nvlist. 1157 * (list with one value choice), or as an nvlist with a single nvpair 1158 * (also a list with on value choice), or as an nvlist wit 1455 idm_pdu_list_to_nvlist(list_t *pdu_list, nvlist_t **nvlist, uint8_t *error_detail) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.h | 170 /* nvlist parameters */ 249 nvlist_t *nvlist; member in struct:ipqos_conf_filter_s 275 nvlist_t *nvlist; member in struct:ipqos_conf_act_ref_s 284 nvlist_t *nvlist; member in struct:ipqos_conf_class_s 301 nvlist_t *nvlist; member in struct:ipqos_conf_params_s 324 nvlist_t *nvlist; member in struct:ipqos_conf_action_s
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_share.c | 2369 * structure to the nvlist format that will be provided by libsharev2 2372 smb_shr_encode(smb_share_t *si, nvlist_t **nvlist) argument 2380 *nvlist = NULL; 2439 *nvlist = list;
|
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/ |
H A D | sysevent_conf_mod.c | 1056 find_macro_definition(sysevent_t *ev, nvlist_t *nvlist, syseventtab_t *sep, argument 1141 if (nvlist) { 1144 while ((nvp = nvlist_next_nvpair(nvlist, nvp)) != NULL) { 1414 expand_macros(sysevent_t *ev, nvlist_t *nvlist, syseventtab_t *sep, argument 1462 replacement = find_macro_definition(ev, nvlist, 1648 * Instead, we build a separate event and nvlist with the 1661 nvlist_t *nvlist; local 1690 if (sysevent_get_attr_list(ev, &nvlist) != 0) { 1697 if (expand_macros(ev, nvlist, sep, line, hdr)) { 1699 nvlist_free(nvlist); [all...] |
/illumos-gate/usr/src/lib/libsysevent/ |
H A D | libsysevent.c | 235 sysevent_get_attr_list(sysevent_t *ev, nvlist_t **nvlist) argument 243 *nvlist = NULL; 251 if ((error = nvlist_dup(nvl, nvlist, 0)) != 0) { 267 /* unpack nvlist */ 270 if ((error = nvlist_unpack(attr, attr_len, nvlist, 0)) != 0) { 395 * nvlist manually here. 641 * se_unpack - unpack nvlist to a searchable list. 663 /* unpack nvlist */
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 1221 * For a given XDR packed nvlist, verify the first 4 bytes and move on. 1223 * An XDR packed nvlist is encoded as (comments from nvs_xdr_create) : 1244 nvlist_unpack(char *nvlist, char **out) argument 1246 /* Verify if the 1st and 2nd byte in the nvlist are valid. */ 1247 if (nvlist[0] != NV_ENCODE_XDR || nvlist[1] != HOST_ENDIAN) 1250 *out = nvlist + 4; 1255 nvlist_array(char *nvlist, int index) argument 1261 nvlist = nvlist 1409 nvlist_lookup_value(char *nvlist, char *name, void *val, int valtype, int *nelmp) argument 1533 char *nvlist, *nv, *features; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/zfs/ |
H A D | zfsimpl.c | 157 nvlist_find(const unsigned char *nvlist, const char *name, int type, argument 164 p = nvlist; 216 nvlist_check_features_for_read(const unsigned char *nvlist) argument 225 p = nvlist; 267 * Return the next nvlist in an nvlist array. 270 nvlist_next(const unsigned char *nvlist) argument 276 p = nvlist; 297 nvlist_print(const unsigned char *nvlist, unsigned int indent) argument 334 p = nvlist; 510 vdev_init_from_nvlist(const unsigned char *nvlist, vdev_t *pvdev, vdev_t **vdevp, int is_newer) argument 911 const unsigned char *nvlist; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | bofi.c | 4504 nvlist_t *nvlist; local 4514 (void) sysevent_get_attr_list(ev, &nvlist); 4515 (void) nvlist_lookup_string(nvlist, FM_CLASS, &class); 4516 if (nvlist_lookup_nvlist(nvlist, FM_EREPORT_DETECTOR, &detector) == 0) 4565 nvlist_free(nvlist);
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_dataset.c | 216 * properties into a separate nvlist. 936 * Given an nvlist of properties to set, validates that they are correct, and 1630 * Given an nvlist of property names and values, set the properties for the 1657 * before computing the length of the nvlist. 1892 * True DSL properties are stored in an nvlist. The following two functions 3503 * Destroys all the snapshots named in the nvlist. 3701 * Creates snapshots. The keys in the snaps nvlist are the snapshots to be 4319 nvlist_t *nvlist = NULL; local 4327 if (nvlist_alloc(&nvlist, NV_UNIQUE_NAME, 0) != 0) { 4339 if (nvlist_add_string(nvlist, ZFS_SMB_ACL_SR [all...] |