/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_trap.c | 44 nvlist_t *attr_list; local 47 attr_list = NULL; 48 rc = nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, KM_SLEEP); 52 rc = nvlist_add_int32(attr_list, "alertlevel", alertlevel); 56 rc = nvlist_add_string(attr_list, "messagevalue", trap_messages); 60 rc = nvlist_add_int32(attr_list, "errorno", errorno); 66 SVE_CACHE_CLASS, component, attr_list, NULL, DDI_SLEEP); 69 SVE_STE_CLASS, component, attr_list, NULL, DDI_SLEEP); 72 SVE_II_CLASS, component, attr_list, NULL, DDI_SLEEP); 74 nvlist_free(attr_list); [all...] |
/illumos-gate/usr/src/lib/print/libipp-core/common/ |
H A D | ipp_types.c | 51 static attr_info_list_t attr_list[] = { variable 193 for (i = 0; attr_list[i].name != NULL; i++) 194 if (strcasecmp(attr_list[i].name, name) == 0) 195 return (&attr_list[i]); 298 for (i = 0; attr_list[i].name != NULL; i++) 299 if (strcasecmp(attr_list[i].name, name) == 0) 300 return (attr_list[i].ipp_type);
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | sysevent_events.c | 68 nvlist_t *attr_list; local 91 if (sysevent_get_attr_list(ev, &attr_list) != 0) { 95 if (nvlist_lookup_string(attr_list, DEV_DRIVER_NAME, &driver) != 0 || 96 nvlist_lookup_int32(attr_list, DEV_INSTANCE, &instance) != 0) { 99 nvlist_free(attr_list); 103 nvlist_free(attr_list);
|
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/ |
H A D | mp_utils.c | 197 nvlist_t *attr_list = NULL; local 398 (void) sysevent_get_attr_list(ev, &attr_list); 399 if (NULL != attr_list) { 420 (void) nvlist_lookup_int32_array(attr_list, 427 (void) nvlist_lookup_int32_array(attr_list, 453 (void) nvlist_lookup_uint64_array(attr_list, OIDLIST, 479 nvlist_free(attr_list); 541 nvlist_free(attr_list);
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | directory_client.c | 128 char **attr_list) 148 for (nattrs = 0; attr_list[nattrs] != NULL; nattrs++) 154 sl_attrs.idmap_utf8str_list_val = attr_list; 122 directory_get_v( directory_t d, directory_entry_list_t *ret, char **ids, int nids, char *types, char **attr_list) argument
|
/illumos-gate/usr/src/cmd/acpihpd/ |
H A D | notify.c | 268 nvlist_t *attr_list = NULL; local 296 if (sysevent_get_attr_list(ev, &attr_list) != 0) { 302 if (nvlist_lookup_string(attr_list, DR_AP_ID, &ap_id) != 0) { 314 if (nvlist_lookup_string(attr_list, DR_REQ_TYPE, &req) != 0) { 326 if (nvlist_lookup_string(attr_list, ACPIDEV_EVENT_TYPE_ATTR_NAME, 348 if (attr_list != NULL) { 349 nvlist_free(attr_list);
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_smhba.c | 237 nvlist_t *attr_list; local 269 if (nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, 0) != 0) { 276 if (nvlist_add_int32(attr_list, SAS_DRV_INST, 280 if (nvlist_add_string(attr_list, SAS_PORT_ADDR, sas_addr) != 0) 283 if (nvlist_add_string(attr_list, SAS_DEVFS_PATH, pname) != 0) 286 if (nvlist_add_uint8(attr_list, SAS_PHY_ID, phynum) != 0) 290 if (nvlist_add_uint8(attr_list, SAS_LINK_RATE, lrate) != 0) 294 if (nvlist_add_string(attr_list, SAS_EVENT_TYPE, etype) != 0) 298 attr_list, NULL, DDI_NOSLEEP); 302 nvlist_free(attr_list); [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_se_notify.c | 328 nvlist_t *attr_list; local 340 err = (*_nvlist_alloc)(&attr_list, NV_UNIQUE_NAME, 0); 344 err = (*_nvlist_add_uint32)(attr_list, SVM_VERSION_NO, 351 err = (*_nvlist_add_uint32)(attr_list, SVM_TAG, (uint32_t)tag); 357 err = (*_nvlist_add_uint32)(attr_list, SVM_SET_NO, 364 err = (*_nvlist_add_uint64)(attr_list, SVM_DEV_ID, 373 err = (*_nvlist_add_string)(attr_list, SVM_DEV_NAME, 377 err = (*_nvlist_add_string)(attr_list, SVM_DEV_NAME, 386 SUNW_VENDOR, EP_SVM, attr_list, &eid); 388 (*_nvlist_free)(attr_list); [all...] |
/illumos-gate/usr/src/cmd/bart/ |
H A D | bart.h | 137 uint_t attr_list; member in struct:rule
|
/illumos-gate/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 88 nvlist_t *attr_list; local 104 if (sysevent_get_attr_list (ev, &attr_list) != 0) 107 if (nvlist_lookup_string (attr_list, DEV_PHYS_PATH, &phys_path) != 0) { 131 nvlist_free(attr_list);
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | protocol.c | 282 nvlist_t *attr_list = NULL; local 294 if (sysevent_get_attr_list(syse, &attr_list) != 0) 297 if ((nvlist_lookup_int32(attr_list, RESTARTER_NAME_STATE, 299 (nvlist_lookup_int32(attr_list, RESTARTER_NAME_NEXT_STATE, 301 (nvlist_lookup_int32(attr_list, RESTARTER_NAME_ERROR, &err) != 0) || 302 (nvlist_lookup_string(attr_list, RESTARTER_NAME_INSTANCE, 304 (nvlist_lookup_int32(attr_list, RESTARTER_NAME_REASON, &reason) != 324 nvlist_free(attr_list);
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp.c | 223 ibt_part_attr_t *attr_list, *attr; local 226 if ((ibt_get_all_part_attr(&attr_list, &nparts) != IBT_SUCCESS) || 243 attr = attr_list; 266 (void) ibt_free_part_attr(attr_list, ibds->ibcm_arp_ibd_alloc);
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas_smhba.c | 233 nvlist_t *attr_list; local 263 if (nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, 0) != 0) { 270 if (nvlist_add_int32(attr_list, SAS_DRV_INST, 274 if (nvlist_add_string(attr_list, SAS_PORT_ADDR, sas_addr) != 0) 277 if (nvlist_add_string(attr_list, SAS_DEVFS_PATH, pname) != 0) 280 if (nvlist_add_uint8(attr_list, SAS_PHY_ID, phynum) != 0) 284 if (nvlist_add_uint8(attr_list, SAS_LINK_RATE, lrate) != 0) 288 if (nvlist_add_string(attr_list, SAS_EVENT_TYPE, etype) != 0) 292 attr_list, NULL, DDI_NOSLEEP); 296 nvlist_free(attr_list); [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_lun.c | 539 nvlist_t *attr_list = NULL; local 592 if (nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, KM_SLEEP) != 606 if (nvlist_add_string(attr_list, DEV_PHYS_PATH, pathname) != 608 nvlist_free(attr_list); 612 iscsi_send_sysevent(ihp, EC_DEV_ADD, ESC_DISK, attr_list); 614 nvlist_free(attr_list); 649 nvlist_t *attr_list = NULL; local 758 if (nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, KM_SLEEP) != 764 if (nvlist_add_string(attr_list, DEV_PHYS_PATH, pathname) != 766 nvlist_free(attr_list); [all...] |
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | sysevent.c | 162 nvlist_t *attr_list; local 177 if (sysevent_get_attr_list(ev, &attr_list) != 0) 181 if (nvlist_lookup_string(attr_list, DEVFS_PATHNAME, &phys_path) != 0) { 194 if (nvlist_lookup_string(attr_list, PWRCTL_DEV_PHYS_PATH, 199 if (nvlist_lookup_string(attr_list, DR_AP_ID, 203 } else if (nvlist_lookup_string(attr_list, DEV_PHYS_PATH, &phys_path) 212 if (nvlist_lookup_string(attr_list, DR_HINT, &dev_name) != 0) { 215 } else if (nvlist_lookup_string(attr_list, DEV_NAME, &dev_name) != 0) { 223 if (nvlist_lookup_string(attr_list, PWRCTL_DEV_HID, &dev_hid) != 0) { 226 if (nvlist_lookup_string(attr_list, PWRCTL_DEV_UI [all...] |
/illumos-gate/usr/src/lib/libsysevent/ |
H A D | libevchannel.c | 266 const char *pub_name, nvlist_t *attr_list, 284 (char *)vendor, (char *)pub_name, attr_list); 264 sysevent_evc_publish(evchan_t *scp, const char *class, const char *subclass, const char *vendor, const char *pub_name, nvlist_t *attr_list, uint32_t flags) argument
|
H A D | libsysevent.c | 77 char *pub, int pub_sz, nvlist_t *attr_list) 86 if (attr_list != NULL) { 87 if (nvlist_size(attr_list, &nvlist_sz, SE_ENCODE_METHOD) 131 if (attr_list == NULL) { 139 if (nvlist_pack(attr_list, &attr, &nvlist_sz, SE_ENCODE_METHOD, 153 nvlist_t *attr_list, sysevent_id_t *eid) 158 ev = sysevent_alloc_event(class, subclass, vendor, pub_name, attr_list); 219 nvlist_t *attr_list = (nvlist_t *)(uintptr_t)SE_ATTR_PTR(ev); local 221 nvlist_free(attr_list); 587 nvlist_t *attr_list) 76 sysevent_alloc(char *class, int class_sz, char *subclass, int subclass_sz, char *pub, int pub_sz, nvlist_t *attr_list) argument 152 sysevent_post_event(char *class, char *subclass, char *vendor, char *pub_name, nvlist_t *attr_list, sysevent_id_t *eid) argument 586 sysevent_alloc_event(char *class, char *subclass, char *vendor, char *pub_name, nvlist_t *attr_list) argument 687 nvlist_t *attr_list = NULL; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | power.c | 710 nvlist_t *attr_list = NULL; local 716 err = nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, DDI_NOSLEEP); 730 err = nvlist_add_string(attr_list, PWRCTL_DEV_HID, hid); 735 nvlist_free(attr_list); 740 err = nvlist_add_string(attr_list, PWRCTL_DEV_PHYS_PATH, pathname); 745 nvlist_free(attr_list); 751 ESC_PWRCTL_POWER_BUTTON, attr_list, NULL, DDI_NOSLEEP); 757 nvlist_free(attr_list);
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | map_v2.c | 625 * attr_list - NULL terminated array of attr_t structures describing the 635 * and then calls the attribute function given by the attr_list array 643 parse_attributes(Mapfile *mf, const char *item_name, attr_t *attr_list, argument 660 attr = ld_map_kwfind(tkv.tkv_str, attr_list, 713 ld_map_kwnames(attr_list, 1161 static attr_t attr_list[] = { local 1177 * Size of buffer needed to format the names in attr_list[]. Must 1178 * be kept in sync with attr_list. 1246 attr_list, attr_list_bufsize, NULL) == TK_ERROR) 1343 static attr_t attr_list[] local 1775 static attr_t attr_list[] = { local 2255 dir_segment_inner(Mapfile *mf, const char *dir_name, Word seg_type, attr_t *attr_list, size_t attr_list_bufsize, gts_efunc_t gts_efunc) argument 2365 static attr_t attr_list[] = { local 2595 static attr_t attr_list[] = { local 2987 static attr_t attr_list[] = { local [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | mpapi_impl.c | 4099 nvlist_t *attr_list; local 4101 if (nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, 4106 if (nvlist_add_uint64_array(attr_list, "oid", oid, 1) != DDI_SUCCESS) { 4111 attr_list, NULL, DDI_SLEEP); 4114 nvlist_free(attr_list);
|
/illumos-gate/usr/src/uts/i86pc/io/acpi_drv/ |
H A D | acpi_drv.c | 781 nvlist_t *attr_list = NULL; local 786 err = nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, DDI_NOSLEEP); 794 err = nvlist_add_string(attr_list, PWRCTL_DEV_HID, devp->hid); 799 nvlist_free(attr_list); 803 err = nvlist_add_string(attr_list, PWRCTL_DEV_UID, devp->uid); 808 nvlist_free(attr_list); 812 err = nvlist_add_uint32(attr_list, PWRCTL_DEV_INDEX, devp->index); 817 nvlist_free(attr_list); 822 err = nvlist_add_string(attr_list, PWRCTL_DEV_PHYS_PATH, pathname); 827 nvlist_free(attr_list); [all...] |
/illumos-gate/usr/src/uts/common/io/comstar/port/fct/ |
H A D | fct.c | 3433 nvlist_t *attr_list; local 3440 if (nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, 3445 if (nvlist_add_uint32(attr_list, "instance", port_instance) 3450 if (nvlist_add_byte_array(attr_list, "port-wwn", 3456 subclass, attr_list, NULL, DDI_SLEEP); 3458 nvlist_free(attr_list); 3462 nvlist_free(attr_list); 3472 nvlist_t *attr_list; local 3479 if (nvlist_alloc(&attr_list, NV_UNIQUE_NAME_TYPE, 3484 if (nvlist_add_uint32(attr_list, "instanc [all...] |
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | xvdi.c | 1696 nvlist_t *attr_list = NULL; local 1711 err = nvlist_alloc(&attr_list, NV_UNIQUE_NAME, KM_NOSLEEP); 1715 err = nvlist_add_int32(attr_list, "domain", pdp->xd_domain); 1718 err = nvlist_add_int32(attr_list, "vdev", pdp->xd_vdevnum); 1721 err = nvlist_add_string(attr_list, "devclass", xdcp->xsdev); 1724 err = nvlist_add_string(attr_list, "device", devname); 1727 err = nvlist_add_string(attr_list, "fob", 1735 "add", attr_list, &eid, DDI_NOSLEEP); 1739 "remove", attr_list, &eid, DDI_NOSLEEP); 1747 nvlist_free(attr_list); [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | log_sysevent.c | 1862 nvlist_t *attr_list, 1866 sysevent_attr_list_t *list = (sysevent_attr_list_t *)attr_list; 1857 ddi_log_sysevent( dev_info_t *dip, char *vendor, char *class, char *subclass, nvlist_t *attr_list, sysevent_id_t *eidp, int sleep_flag) argument
|
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.c | 603 nvlist_t *attr_list = NULL; local 612 if (sysevent_get_attr_list(syse, &attr_list) != 0) 615 if ((nvlist_lookup_uint32(attr_list, RESTARTER_NAME_TYPE, 617 (nvlist_lookup_string(attr_list, 628 nvlist_free(attr_list); 784 nvlist_t *attr_list, uint32_t flags) 791 pub_name, attr_list, flags); 782 restarter_event_publish_retry(evchan_t *scp, const char *class, const char *subclass, const char *vendor, const char *pub_name, nvlist_t *attr_list, uint32_t flags) argument
|