Searched defs:fmri (Results 1 - 25 of 173) sorted by relevance

1234567

/illumos-gate/usr/src/lib/fm/libfmd_msg/common/
H A Dfmd_msg_test.c50 nvlist_t *auth, *fmri, *list, *test_arr[TEST_ARR_SZ]; local
65 nvlist_alloc(&fmri, NV_UNIQUE_NAME, 0) != 0 ||
84 err |= nvlist_add_uint8(fmri, FM_VERSION, FM_FMD_SCHEME_VERSION);
85 err |= nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_FMD);
86 err |= nvlist_add_nvlist(fmri, FM_FMRI_AUTHORITY, auth);
87 err |= nvlist_add_string(fmri, FM_FMRI_FMD_NAME, "fmd_msg_test");
88 err |= nvlist_add_string(fmri, FM_FMRI_FMD_VERSION, "1.0");
91 (void) fprintf(stderr, "%s: failed to build fmri nvlist: %s\n",
101 err |= nvlist_add_nvlist(list, FM_SUSPECT_DE, fmri);
246 nvlist_free(fmri);
[all...]
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dnvlrender.c40 * 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/sw-diag-response/subsidiary/smf/
H A Dsmf_util.c41 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/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_fmri.c36 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...]
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_fmri.c34 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/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_generic.c50 nvlist_t *fmri; local
65 fmri = topo_mod_hcfmri(mod, t_fmriparent, FM_HC_SCHEME_VERSION,
71 if (fmri == NULL) {
73 "%s failed to create %s fmri : %s\n", _ENUM_NAME,
85 *t_node = x86pi_node_bind(mod, t_bindparent, hcfmri, fmri, flag);
86 nvlist_free(fmri);
132 nvlist_t *fmri, int flag)
147 hcfmri->instance, fmri);
131 x86pi_node_bind(topo_mod_t *mod, tnode_t *t_parent, x86pi_hcfmri_t *hcfmri, nvlist_t *fmri, int flag) argument
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_generic.c70 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/cmd-inet/usr.lib/inetd/
H A Dcontracts.c114 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/fm/modules/common/cpumem-retire/
H A Dcma_cpu_arch.c46 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/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_hc_opl.c41 * 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 Dcmd_opl.c132 * 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/svc/startd/
H A Dmisc.c71 * Canonify fmri. On success, sets *retp to a string which should be freed
79 fmri_canonify(const char *fmri, char **retp, boolean_t isinstance) argument
89 * Verify that this fmri specifies an instance, using
92 if (strlcpy(cf, fmri, max_scf_fmri_size) >= max_scf_fmri_size ||
105 if (scf_canonify_fmri(fmri, cf, max_scf_fmri_size) < 0) {
H A Dspecials.c229 special_online_hooks_get(const char *fmri, instance_hook_t *pre_onp, argument
236 if (strcmp(fmri, special_svcs[i].sh_fmri) == 0) {
H A Ddeathrow.c69 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/lib/fm/topo/modules/common/disk/
H A Ddisk.c83 nvlist_t *fmri; local
93 if (topo_node_resource(baynode, &fmri, &err) != 0) {
98 if (topo_node_fru_set(baynode, fmri, 0, &err) != 0) {
101 nvlist_free(fmri);
104 nvlist_free(fmri);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/zambezi/
H A Dzambezi.c95 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/lib/libc/sparc/sys/
H A Duadmin.c106 char *fmri = "svc:/system/boot-config:default"; local
121 prop = real_scf_simple_prop_get(NULL, fmri, "config",
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/
H A Dfmevt_inbound_smf.c45 * 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/cmd/fm/modules/sun4v/cpumem-retire/
H A Dcma_cpu_sun4v.c46 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/lib/fm/topo/modules/sun4v/cpuboard/
H A Dcpuboard_hostbridge.c45 nvlist_t *fmri; local
55 if ((fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, name,
65 node = topo_node_bind(mp, parent, name, inst, fmri);
67 nvlist_free(fmri);
73 nvlist_free(fmri);
114 nvlist_t *fmri; local
122 fmri = topo_mod_devfmri(mp, FM_DEV_SCHEME_VERSION,
124 if (fmri == NULL) {
126 "dev:///%s fmri creation failed.\n",
132 if (topo_node_asru_set(rcn, fmri,
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c65 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 Dutil.c97 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/common/xfp/
H A Dxfp.c89 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/lib/fm/topo/modules/sun4u/chip/
H A Dchip_sun4u.c184 nvlist_t *fmri, *asru; local
208 fmri = topo_mod_hcfmri(mod, rnode, FM_HC_SCHEME_VERSION, name,
210 if (fmri == NULL || (cnode = topo_node_bind(mod,
211 rnode, name, i, fmri)) == NULL) {
213 nvlist_free(fmri);
216 nvlist_free(fmri);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/pcibus/
H A Dpci_sun4v.c231 nvlist_t *fmri; local
251 rc = topo_node_fru(node, &fmri, NULL, &err);
253 rc = topo_node_fru_set(walkdata->node, fmri, 0, &err);
254 nvlist_free(fmri);

Completed in 77 milliseconds

1234567