/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
H A D | cmd_fmri.c | 36 cmd_fmri_init(fmd_hdl_t *hdl, cmd_fmri_t *fmri, nvlist_t *nvl, argument 42 cmd_vbufname(fmri->fmri_packnm, sizeof (fmri->fmri_packnm), fmt, ap); 45 if ((errno = nvlist_dup(nvl, &fmri->fmri_nvl, 0)) != 0 || 46 (errno = nvlist_size(nvl, &fmri->fmri_packsz, 48 fmd_hdl_abort(hdl, "failed to copy fmri for fmri create"); 50 fmri->fmri_packbuf = fmd_hdl_alloc(hdl, fmri->fmri_packsz, FMD_SLEEP); 52 if ((errno = nvlist_pack(nvl, &fmri 60 cmd_fmri_fini(fmd_hdl_t *hdl, cmd_fmri_t *fmri, int destroy) argument 70 cmd_fmri_restore(fmd_hdl_t *hdl, cmd_fmri_t *fmri) argument 91 cmd_fmri_write(fmd_hdl_t *hdl, cmd_fmri_t *fmri) argument [all...] |
H A D | cmd_mem.c | 52 cmd_fmri_get_unum(nvlist_t *fmri) argument 57 if (nvlist_lookup_pairs(fmri, 0, 174 nvlist_t *fmri; local 176 if ((errno = nvlist_alloc(&fmri, NV_UNIQUE_NAME, 0)) != 0) 179 if ((errno = nvlist_add_uint8(fmri, FM_VERSION, 180 FM_MEM_SCHEME_VERSION)) != 0 || (errno = nvlist_add_string(fmri, 182 nvlist_add_string(fmri, FM_FMRI_MEM_UNUM, unum)) != 0) { 183 nvlist_free(fmri); 188 (void) nvlist_add_string_array(fmri, FM_FMRI_MEM_SERIAL_ID, 191 return (fmri); 198 nvlist_t *fmri; local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
H A D | gmem_fmri.c | 34 gmem_fmri_init(fmd_hdl_t *hdl, gmem_fmri_t *fmri, nvlist_t *nvl, argument 40 gmem_vbufname(fmri->fmri_packnm, sizeof (fmri->fmri_packnm), fmt, ap); 43 if ((errno = nvlist_dup(nvl, &fmri->fmri_nvl, 0)) != 0 || 44 (errno = nvlist_size(nvl, &fmri->fmri_packsz, 46 fmd_hdl_abort(hdl, "failed to copy fmri for fmri create"); 48 fmri->fmri_packbuf = fmd_hdl_alloc(hdl, fmri->fmri_packsz, FMD_SLEEP); 50 if ((errno = nvlist_pack(nvl, &fmri 58 gmem_fmri_fini(fmd_hdl_t *hdl, gmem_fmri_t *fmri, int destroy) argument 68 gmem_fmri_restore(fmd_hdl_t *hdl, gmem_fmri_t *fmri) argument 89 gmem_fmri_write(fmd_hdl_t *hdl, gmem_fmri_t *fmri) argument [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | deathrow.c | 69 char *fmri; member in struct:deathrow 100 char *fmri; local 135 * <fmri>< ><manifest path>< ><package name><\n> 144 fmri = NULL; 155 fmri = line; 165 if (fmri != NULL && strlen(fmri) > 0 && 166 strlen(fmri) < max_scf_fmri_size && 171 fmri, manifest, pkgname); 172 if (fmri_in_deathrow_internal(fmri) 217 deathrow_add(const char *fmri) argument 233 fmri_in_deathrow_internal(const char *fmri) argument 251 is_fmri_in_deathrow(const char *fmri) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_hc_opl.c | 41 * Set-up and validate the members of an hc fmri according to; 57 cmd_fmri_hc_set_common(nvlist_t *fmri, int version, const nvlist_t *auth) argument 63 if (nvlist_add_uint8(fmri, FM_VERSION, version) != 0 || 64 nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_HC) != 0) { 68 if (auth != NULL && nvlist_add_nvlist(fmri, FM_FMRI_AUTHORITY, 77 cmd_fmri_hc_set(fmd_hdl_t *hdl, nvlist_t *fmri, int version, argument 85 if (!cmd_fmri_hc_set_common(fmri, version, auth)) 108 err |= nvlist_add_string(fmri, FM_FMRI_HC_ROOT, ""); 109 err |= nvlist_add_uint32(fmri, FM_FMRI_HC_LIST_SZ, npairs); 110 err |= nvlist_add_nvlist_array(fmri, FM_FMRI_HC_LIS [all...] |
H A D | cmd_opl.c | 132 * This function builds the resource fmri page based on 139 nvlist_t *fmri; local 143 if ((errno = nvlist_alloc(&fmri, NV_UNIQUE_NAME, 0)) != 0) 147 nvlist_free(fmri); 175 nvlist_free(fmri); 179 if (cmd_fmri_hc_set(hdl, fmri, FM_HC_SCHEME_VERSION, NULL, NULL, 185 nvlist_free(fmri); 190 return (fmri); 196 nvlist_t *fmri; local 207 if ((fmri [all...] |
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | nvlrender.c | 40 * nvlist is not recognized as an fmri, and default formatting 41 * will be applied; otherwise format as an fmri string and return 1. 47 const char *name, nvlist_t *fmri) 55 if (nvlist_lookup_string(fmri, FM_FMRI_SCHEME, &class) != 0 || 56 nvlist_lookup_uint8(fmri, FM_VERSION, &version) != 0) 65 if (topo_fmri_nvl2str(thp, fmri, &fmristr, &err) != 0 || 46 fmdump_render_nvlist(nvlist_prtctl_t pctl, void *private, nvlist_t *nvl, const char *name, nvlist_t *fmri) argument
|
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_inbound_smf.c | 45 * fmri STRING svc:/... (svc scheme shorthand version) 96 nvlist_t *ret, *fmri; local 106 if (topo_fmri_str2nvl(thp, fmristr, &fmri, &err) != 0) { 116 if ((ret = fmd_nvl_dup(hdl, fmri, FMD_SLEEP)) == NULL) { 117 fmd_hdl_error(hdl, "failed to dup fmri\n"); 118 nvlist_free(fmri); 123 nvlist_free(fmri); 140 nvlist_t *fmri; local 148 nvlist_lookup_string(rawattr, "fmri", &svcname) != 0 || 167 if ((fmri [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/xfp/ |
H A D | xfp.c | 89 nvlist_t *fmri; local 93 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i, 97 if (fmri == NULL) { 104 ntn = topo_node_bind(mod, parent, name, i, fmri); 105 nvlist_free(fmri); 131 nvlist_t *fmri; local 134 if (topo_node_resource(tn, &fmri, &err) < 0 || 135 fmri == NULL) { 140 e = topo_node_fru_set(tn, fmri, 0, &err); 141 nvlist_free(fmri); 182 nvlist_t *fmri = NULL; local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/ |
H A D | smf_util.c | 41 sw_smf_svcfmri2str(fmd_hdl_t *hdl, nvlist_t *fmri) argument 49 if (topo_fmri_nvl2str(thp, fmri, &topostr, &err) == 0) { 63 sw_smf_svcfmri2shortstr(fmd_hdl_t *hdl, nvlist_t *fmri) argument 68 if (nvlist_lookup_string(fmri, FM_FMRI_SVC_NAME, &name) != 0 || 69 nvlist_lookup_string(fmri, FM_FMRI_SVC_INSTANCE, &inst) != 0)
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip.c | 148 nvlist_t *fmri; local 151 if (mkrsrc(mod, pnode, name, inst, auth, &fmri) != 0) { 168 perr += nvlist_add_string(fmri, FM_FMRI_HC_SERIAL_ID, 170 perr += nvlist_add_string(fmri, FM_FMRI_HC_PART, 172 perr += nvlist_add_string(fmri, FM_FMRI_HC_REVISION, 184 cnode = topo_node_bind(mod, pnode, name, inst, fmri); 186 nvlist_free(fmri); 202 nvlist_t *fmri; local 237 TOPO_PROP_RESOURCE, &fmri, &err) != 0) 240 if (nvlist_lookup_string(fmri, FM_FMRI_HC_SERIAL_I 329 nvlist_t *fmri; local 460 nvlist_t *fmri = NULL; local [all...] |
H A D | chip_amd.c | 163 nvlist_t *fmri; local 167 &fmri) != 0) { 174 chan, fmri)) == NULL) { 175 nvlist_free(fmri); 181 nvlist_free(fmri); 208 &fmri) != 0) { 215 cs, fmri)) == NULL) { 216 nvlist_free(fmri); 245 (void) topo_node_asru_set(csnode, fmri, 247 nvlist_free(fmri); 369 nvlist_t *fmri, *pfmri = NULL; local 467 nvlist_t *fmri, **dimmarr = NULL; local 587 nvlist_t *fmri, **csarr = NULL; local 641 nvlist_t *fmri; local 723 nvlist_t *rfmri, *fmri; local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-retire/ |
H A D | cma_cpu_sun4v.c | 46 cpu_blacklist_cmd(fmd_hdl_t *hdl, nvlist_t *fmri, boolean_t repair) argument 49 return (ldom_fmri_unblacklist(cma_lhp, fmri)); 51 return (ldom_fmri_blacklist(cma_lhp, fmri)); 58 nvlist_t *fmri; local 67 if (nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &fmri) != 0) 68 fmri = asru; 70 rc = cpu_blacklist_cmd(hdl, fmri, repair); 83 cpu_cmd(fmd_hdl_t *hdl, nvlist_t *fmri, int cmd) argument 89 * We're using topo retire if the fmri is in "hc" scheme. 91 if (nvlist_lookup_string(fmri, FM_FMRI_SCHEM 132 cma_cpu_start_retry(fmd_hdl_t *hdl, nvlist_t *fmri, const char *uuid, boolean_t repair) argument [all...] |
/illumos-gate/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 496 * communicate whether the action is requested from a tty and the fmri of the 502 restarter_setup(const char *fmri, const scf_instance_t *inst) argument 515 uu_warn(emsg_permission_denied, fmri); 517 uu_warn(emsg_create_pg_perm_denied, fmri, 535 uu_warn(emsg_permission_denied, fmri); 537 uu_warn(emsg_prop_perm_denied, fmri, 547 uu_warn(gettext("%s: Repository read-only.\n"), fmri); 550 "(repository read-only).\n"), fmri, 562 set_astring_prop(fmri, SCF_PG_RESTARTER_ACTIONS, 568 "my_ct_name failed.\n"), fmri, 584 set_inst_enabled(const char *fmri, scf_instance_t *inst, boolean_t temp, boolean_t enable) argument 788 get_inst_mult(const char *fmri, scf_instance_t *inst) argument 893 get_inst(const char *fmri, scf_instance_t *inst) argument 922 dep_get_astring(const char *fmri, const char *pgname, const scf_propertygroup_t *pg, const char *propname, scf_property_t *prop, scf_value_t *v, char *buf, size_t bufsz) argument 1024 enable_fmri_rec(char *fmri, boolean_t temp) argument 1327 set_inst_action(const char *fmri, const scf_instance_t *inst, const char *action) argument 1487 inst_get_state(scf_instance_t *inst, char *state, const char *fmri, scf_propertygroup_t **pgp) argument 1561 set_astring_prop(const char *fmri, const char *pgname, const char *pgtype, uint32_t pgflags, const char *propname, const char *str) argument 1978 set_milestone(const char *fmri, boolean_t temporary) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.h | 59 diskmon_t *dm_fmri_to_diskmon(fmd_hdl_t *hdl, nvlist_t *fmri);
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_hba.c | 65 nvlist_t *fmri; local 69 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, SCSI_DEVICE, 71 if (fmri == NULL) 73 child = topo_node_bind(mod, parent, SCSI_DEVICE, instance, fmri); 74 nvlist_free(fmri); 125 nvlist_t *fmri; local 128 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, SMP_DEVICE, 130 if (fmri == NULL) 132 child = topo_node_bind(mod, parent, SMP_DEVICE, instance, fmri); 133 nvlist_free(fmri); 159 nvlist_t *fmri; local 255 nvlist_t *fmri, *auth; local [all...] |
H A D | util.c | 97 nvlist_t *fmri; local 111 fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, name, i, NULL, 117 if (fmri == NULL) { 123 ntn = topo_node_bind(mp, parent, name, i, fmri); 130 nvlist_free(fmri); 133 nvlist_free(fmri);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/zambezi/ |
H A D | zambezi.c | 95 nvlist_t *fmri; local 99 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i, 103 if (fmri == NULL) { 110 ntn = topo_node_bind(mod, parent, name, i, fmri); 111 nvlist_free(fmri); 141 nvlist_t *fmri = NULL; local 156 /* set ASRU to resource fmri */ 158 TOPO_PROP_RESOURCE, &fmri, &err) == 0) 159 (void) topo_node_asru_set(ntn, fmri, 0, &err); 160 nvlist_free(fmri); [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | contracts.c | 114 contract_prefork(const char *fmri, int method) argument 118 if ((err = ct_pr_tmpl_set_svc_fmri(active_tmpl_fd, fmri)) != 0) { 181 adopt_contract(ctid_t ctid, const char *fmri) argument 195 ctid, fmri); 201 "ignored."), ctid, fmri, strerror(errno)); 207 "with %s (%s). Events will be ignored."), ctid, fmri,
|
/illumos-gate/usr/src/cmd/print/selector/ |
H A D | desktop-print-management-applet | 33 local ($fmri, $property) = @_; 36 open($FH, "$SVCPROP -C -p $property $fmri 2>/dev/null |");
|
/illumos-gate/usr/src/cmd/ipf/svc/ |
H A D | ipfd.c | 57 * /lib/svc/method/ipfilter fw_update fmri 59 * where fmri the instance fmri of the service to be updated. 245 is_correct_event(const char *fmri, const scf_propertygroup_t *pg, argument 273 if ((state = smf_get_state(fmri)) == NULL) { 275 "%s\n", fmri, scf_strerror(scf_error())); 279 syslog(LOG_DEBUG | LOG_DAEMON, "%s STATE: %s \n", fmri, state); 314 ipfilter_update(const char *fmri) argument 319 syslog(LOG_DEBUG | LOG_DAEMON, "ipfilter_update: %s\n", fmri); 326 "ipfilter for %s: %s", fmri, strerro 570 char *fmri, *scratch; local [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/chip/ |
H A D | chip_sun4v.c | 127 nvlist_t *fmri; local 160 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i, 163 if (fmri == NULL) { 170 ntn = topo_node_bind(mod, parent, name, i, fmri); 177 nvlist_free(fmri); 180 nvlist_free(fmri); 212 nvlist_t *fmri; local 214 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0) 216 err = nvlist_add_uint8(fmri, FM_VERSION, FM_CPU_SCHEME_VERSION); 217 err |= nvlist_add_string(fmri, FM_FMRI_SCHEM [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_generic.c | 70 nvlist_t *fmri; local 90 fmri = topo_mod_hcfmri(mod, t_fmriparent, FM_HC_SCHEME_VERSION, hc_name, 97 if (fmri == NULL) { 99 "%s failed to create fmri node_0x%llx: %s\n", enum_name, 106 fmri); 107 nvlist_free(fmri);
|
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_cpu_arch.c | 46 nvlist_t *fmri; local 58 if (nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &fmri) != 0) 59 fmri = asru; 71 if ((errno = nvlist_size(fmri, &fmrisz, NV_ENCODE_NATIVE)) != 0 || 77 if ((errno = nvlist_pack(fmri, &fmribuf, &fmrisz,
|
/illumos-gate/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/ |
H A D | opl_hostbridge.c | 70 nvlist_t *fmri; local 78 if ((fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, name, 88 node = topo_node_bind(mp, parent, name, inst, fmri); 90 nvlist_free(fmri); 96 nvlist_free(fmri); 127 /* Add FRU fmri */ 146 nvlist_t *fmri; local 148 fmri = topo_mod_devfmri(mp, FM_DEV_SCHEME_VERSION, 150 if (fmri == NULL) { 152 "dev:///%s fmri creatio [all...] |