Searched refs:fmri (Results 1 - 25 of 201) sorted by relevance

123456789

/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...]
H A Dcmd_mem.c52 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 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/cmd/svc/startd/
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/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/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/pkg/scripts/
H A Dpkglist.awk15 # we expect the fmri to be at or near the first line of each input file, and
19 # We keep track of a failure to locate an fmri, so we can exit with an error
33 } while ((e == 1) && (f !~ /name=pkg.fmri/))
36 fmri = a[l]
45 printf("depend fmri=%s type=$(PKGDEP_TYPE)", fmri)
50 print "no fmri in " ARGV[i] >> "/dev/stderr"
/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/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/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/lib/fm/topo/modules/i86pc/chip/
H A Dchip.c152 nvlist_t *fmri; local
155 if (mkrsrc(mod, pnode, name, inst, auth, &fmri) != 0) {
172 perr += nvlist_add_string(fmri, FM_FMRI_HC_SERIAL_ID,
174 perr += nvlist_add_string(fmri, FM_FMRI_HC_PART,
176 perr += nvlist_add_string(fmri, FM_FMRI_HC_REVISION,
191 if (nvlist_add_string(fmri, FM_FMRI_HC_SERIAL_ID,
199 cnode = topo_node_bind(mod, pnode, name, inst, fmri);
201 nvlist_free(fmri);
217 nvlist_t *fmri; local
252 TOPO_PROP_RESOURCE, &fmri,
344 nvlist_t *fmri; local
482 nvlist_t *fmri = NULL; local
[all...]
H A Dchip_amd.c163 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 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/cmd/svc/svcadm/
H A Dsvcadm.c489 * communicate whether the action is requested from a tty and the fmri of the
495 restarter_setup(const char *fmri, const scf_instance_t *inst) argument
508 uu_warn(emsg_permission_denied, fmri);
510 uu_warn(emsg_create_pg_perm_denied, fmri,
528 uu_warn(emsg_permission_denied, fmri);
530 uu_warn(emsg_prop_perm_denied, fmri,
540 uu_warn(gettext("%s: Repository read-only.\n"), fmri);
543 "(repository read-only).\n"), fmri,
555 set_astring_prop(fmri, SCF_PG_RESTARTER_ACTIONS,
561 "my_ct_name failed.\n"), fmri,
577 set_inst_enabled(const char *fmri, scf_instance_t *inst, boolean_t temp, boolean_t enable) argument
781 get_inst_mult(const char *fmri, scf_instance_t *inst) argument
886 get_inst(const char *fmri, scf_instance_t *inst) argument
915 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
1017 enable_fmri_rec(char *fmri, boolean_t temp) argument
1320 set_inst_action(const char *fmri, const scf_instance_t *inst, const char *action) argument
1480 inst_get_state(scf_instance_t *inst, char *state, const char *fmri, scf_propertygroup_t **pgp) argument
1554 set_astring_prop(const char *fmri, const char *pgname, const char *pgtype, uint32_t pgflags, const char *propname, const char *str) argument
1971 set_milestone(const char *fmri, boolean_t temporary) argument
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Dtopo_gather.h59 diskmon_t *dm_fmri_to_diskmon(fmd_hdl_t *hdl, nvlist_t *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/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/lib/fm/topo/modules/common/pcibus/
H A Dutil.c95 nvlist_t *fmri; local
109 fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, name, i, NULL,
115 if (fmri == NULL) {
121 ntn = topo_node_bind(mp, parent, name, i, fmri);
128 nvlist_free(fmri);
131 nvlist_free(fmri);
H A Dpcibus_hba.c74 nvlist_t *fmri; local
78 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, SCSI_DEVICE,
80 if (fmri == NULL)
82 child = topo_node_bind(mod, parent, SCSI_DEVICE, instance, fmri);
83 nvlist_free(fmri);
134 nvlist_t *fmri; local
137 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, SMP_DEVICE,
139 if (fmri == NULL)
141 child = topo_node_bind(mod, parent, SMP_DEVICE, instance, fmri);
142 nvlist_free(fmri);
168 nvlist_t *fmri; local
264 nvlist_t *fmri, *auth; local
[all...]
/illumos-gate/usr/src/cmd/print/selector/
H A Ddesktop-print-management-applet33 local ($fmri, $property) = @_;
36 open($FH, "$SVCPROP -C -p $property $fmri 2>/dev/null |");
/illumos-gate/usr/src/cmd/ipf/svc/
H A Dipfd.c57 * /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 Dchip_sun4v.c127 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 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/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,

Completed in 354 milliseconds

123456789