Home
last modified time | relevance | path

Searched refs:fmri (Results 1 – 25 of 811) sorted by relevance

12345678910>>...33

/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_fmri.c42 cmd_vbufname(fmri->fmri_packnm, sizeof (fmri->fmri_packnm), fmt, ap); in cmd_fmri_init()
50 fmri->fmri_packbuf = fmd_hdl_alloc(hdl, fmri->fmri_packsz, FMD_SLEEP); in cmd_fmri_init()
52 if ((errno = nvlist_pack(nvl, &fmri->fmri_packbuf, &fmri->fmri_packsz, in cmd_fmri_init()
56 cmd_fmri_write(hdl, fmri); in cmd_fmri_init()
65 fmd_hdl_free(hdl, fmri->fmri_packbuf, fmri->fmri_packsz); in cmd_fmri_fini()
77 if ((fmri->fmri_packbuf = cmd_buf_read(hdl, NULL, fmri->fmri_packnm, in cmd_fmri_restore()
80 fmri->fmri_packnm); in cmd_fmri_restore()
83 if (nvlist_unpack(fmri->fmri_packbuf, fmri->fmri_packsz, in cmd_fmri_restore()
86 fmri->fmri_packnm); in cmd_fmri_restore()
99 fmd_buf_write(hdl, NULL, fmri->fmri_packnm, fmri->fmri_packbuf, in cmd_fmri_write()
[all …]
H A Dcmd_mem.c52 cmd_fmri_get_unum(nvlist_t *fmri) in cmd_fmri_get_unum() argument
57 if (nvlist_lookup_pairs(fmri, 0, in cmd_fmri_get_unum()
174 nvlist_t *fmri; in cmd_mem_fmri_create() local
176 if ((errno = nvlist_alloc(&fmri, NV_UNIQUE_NAME, 0)) != 0) in cmd_mem_fmri_create()
179 if ((errno = nvlist_add_uint8(fmri, FM_VERSION, in cmd_mem_fmri_create()
182 nvlist_add_string(fmri, FM_FMRI_MEM_UNUM, unum)) != 0) { in cmd_mem_fmri_create()
183 nvlist_free(fmri); in cmd_mem_fmri_create()
191 return (fmri); in cmd_mem_fmri_create()
198 nvlist_t *fmri; in cmd_mem_fmri_derive() local
228 fmri = cmd_mem_fmri_create(mn.m_name, NULL, 0); in cmd_mem_fmri_derive()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_fmri.c40 gmem_vbufname(fmri->fmri_packnm, sizeof (fmri->fmri_packnm), fmt, ap); in gmem_fmri_init()
48 fmri->fmri_packbuf = fmd_hdl_alloc(hdl, fmri->fmri_packsz, FMD_SLEEP); in gmem_fmri_init()
50 if ((errno = nvlist_pack(nvl, &fmri->fmri_packbuf, &fmri->fmri_packsz, in gmem_fmri_init()
54 gmem_fmri_write(hdl, fmri); in gmem_fmri_init()
63 fmd_hdl_free(hdl, fmri->fmri_packbuf, fmri->fmri_packsz); in gmem_fmri_fini()
75 if ((fmri->fmri_packbuf = gmem_buf_read(hdl, NULL, fmri->fmri_packnm, in gmem_fmri_restore()
78 fmri->fmri_packnm); in gmem_fmri_restore()
81 if (nvlist_unpack(fmri->fmri_packbuf, fmri->fmri_packsz, in gmem_fmri_restore()
84 fmri->fmri_packnm); in gmem_fmri_restore()
97 fmd_buf_write(hdl, NULL, fmri->fmri_packnm, fmri->fmri_packbuf, in gmem_fmri_write()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Ddeathrow.c69 char *fmri; member
100 char *fmri; in deathrow_init() local
144 fmri = NULL; in deathrow_init()
155 fmri = line; in deathrow_init()
165 if (fmri != NULL && strlen(fmri) > 0 && in deathrow_init()
205 startd_free(d->fmri, strlen(d->fmri) + 1); in deathrow_fini()
221 assert(fmri != NULL); in deathrow_add()
224 d->fmri = startd_alloc(strlen(fmri) + 1); in deathrow_add()
225 (void) strcpy(d->fmri, fmri); in deathrow_add()
237 assert(fmri != NULL); in fmri_in_deathrow_internal()
[all …]
/illumos-gate/usr/src/cmd/svc/svcadm/
H A Dsvcadm.c758 fmri); in set_inst_enabled()
788 fmri); in set_inst_enabled()
951 fmri); in get_inst_mult()
996 fmri); in get_inst_mult()
1169 len = scf_canonify_fmri(fmri, fmri, max_scf_fmri_sz); in enable_fmri_rec()
1365 fmri); in enable_fmri_rec()
1637 "group).\n"), fmri ? fmri : inst_get_fmri(inst), in inst_get_state()
1649 fmri ? fmri : inst_get_fmri(inst), SCF_PG_RESTARTER, in inst_get_state()
1656 fmri ? fmri : inst_get_fmri(inst), SCF_PG_RESTARTER, in inst_get_state()
1663 fmri ? fmri : inst_get_fmri(inst), SCF_PG_RESTARTER, in inst_get_state()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip.c153 nvlist_t *fmri; in create_node() local
202 nvlist_free(fmri); in create_node()
218 nvlist_t *fmri; in create_strand() local
261 nvlist_free(fmri); in create_strand()
272 nvlist_free(fmri); in create_strand()
283 nvlist_free(fmri); in create_strand()
331 nvlist_free(fmri); in create_strand()
345 nvlist_t *fmri; in create_core() local
382 nvlist_free(fmri); in create_core()
468 nvlist_free(fmri); in create_core()
[all …]
H A Dchip_amd.c163 nvlist_t *fmri; in amd_generic_mc_create() local
167 &fmri) != 0) { in amd_generic_mc_create()
175 nvlist_free(fmri); in amd_generic_mc_create()
181 nvlist_free(fmri); in amd_generic_mc_create()
208 &fmri) != 0) { in amd_generic_mc_create()
247 nvlist_free(fmri); in amd_generic_mc_create()
418 nvlist_free(fmri); in amd_rank_create()
538 &fmri, &err); in amd_dimm_create()
561 nvlist_free(fmri); in amd_dimm_create()
641 nvlist_t *fmri; in amd_dramchan_create() local
[all …]
H A Dchip_intel.c129 nvlist_t *fmri; in mc_add_ranks() local
146 if (fmri == NULL) { in mc_add_ranks()
174 nvlist_free(fmri); in mc_add_ranks()
190 nvlist_t *fmri; in mc_add_dimms() local
233 fmri = NULL; in mc_add_dimms()
316 nvlist_t *fmri; in mc_add_channel() local
335 nvlist_free(fmri); in mc_add_channel()
369 nvlist_t *fmri; in mc_nb_create() local
463 nvlist_t *fmri; in mc_rank_create_v1() local
561 nvlist_t *fmri; in mc_dimm_create_v1() local
[all …]
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-retire/
H A Dcma_cpu_sun4v.c49 return (ldom_fmri_unblacklist(cma_lhp, fmri)); in cpu_blacklist_cmd()
51 return (ldom_fmri_blacklist(cma_lhp, fmri)); in cpu_blacklist_cmd()
58 nvlist_t *fmri; in cma_cpu_blacklist() local
68 fmri = asru; in cma_cpu_blacklist()
70 rc = cpu_blacklist_cmd(hdl, fmri, repair); in cma_cpu_blacklist()
83 cpu_cmd(fmd_hdl_t *hdl, nvlist_t *fmri, int cmd) in cpu_cmd() argument
97 rc = fmd_nvl_fmri_service_state(hdl, fmri); in cpu_cmd()
110 rc = ldom_fmri_status(cma_lhp, fmri); in cpu_cmd()
113 rc = ldom_fmri_retire(cma_lhp, fmri); in cpu_cmd()
116 rc = ldom_fmri_unretire(cma_lhp, fmri); in cpu_cmd()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_hc_opl.c57 cmd_fmri_hc_set_common(nvlist_t *fmri, int version, const nvlist_t *auth) in cmd_fmri_hc_set_common() argument
63 if (nvlist_add_uint8(fmri, FM_VERSION, version) != 0 || in cmd_fmri_hc_set_common()
64 nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_HC) != 0) { in cmd_fmri_hc_set_common()
68 if (auth != NULL && nvlist_add_nvlist(fmri, FM_FMRI_AUTHORITY, in cmd_fmri_hc_set_common()
77 cmd_fmri_hc_set(fmd_hdl_t *hdl, nvlist_t *fmri, int version, in cmd_fmri_hc_set() argument
85 if (!cmd_fmri_hc_set_common(fmri, version, auth)) in cmd_fmri_hc_set()
108 err |= nvlist_add_string(fmri, FM_FMRI_HC_ROOT, ""); in cmd_fmri_hc_set()
109 err |= nvlist_add_uint32(fmri, FM_FMRI_HC_LIST_SZ, npairs); in cmd_fmri_hc_set()
110 err |= nvlist_add_nvlist_array(fmri, FM_FMRI_HC_LIST, pairs, npairs); in cmd_fmri_hc_set()
113 err |= nvlist_add_nvlist(fmri, FM_FMRI_HC_SPECIFIC, snvl); in cmd_fmri_hc_set()
H A Dcmd_opl.c139 nvlist_t *fmri; in opl_cpursrc_create() local
143 if ((errno = nvlist_alloc(&fmri, NV_UNIQUE_NAME, 0)) != 0) in opl_cpursrc_create()
147 nvlist_free(fmri); in opl_cpursrc_create()
175 nvlist_free(fmri); in opl_cpursrc_create()
185 nvlist_free(fmri); in opl_cpursrc_create()
190 return (fmri); in opl_cpursrc_create()
196 nvlist_t *fmri; in opl_mem_fru_create() local
207 if ((fmri = cmd_mem_fmri_create(unum, NULL, 0)) == NULL) in opl_mem_fru_create()
212 if ((nvlist_add_string_array(fmri, FM_FMRI_MEM_SERIAL_ID, in opl_mem_fru_create()
214 nvlist_free(fmri); in opl_mem_fru_create()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/xfp/
H A Dxfp.c89 nvlist_t *fmri; in xfp_tnode_create() local
97 if (fmri == NULL) { in xfp_tnode_create()
105 nvlist_free(fmri); in xfp_tnode_create()
131 nvlist_t *fmri; in xfp_fru_set() local
135 fmri == NULL) { in xfp_fru_set()
140 e = topo_node_fru_set(tn, fmri, 0, &err); in xfp_fru_set()
141 nvlist_free(fmri); in xfp_fru_set()
182 nvlist_t *fmri = NULL; in xfp_declare() local
195 TOPO_PROP_RESOURCE, &fmri, &e) == 0) in xfp_declare()
196 (void) topo_node_asru_set(ntn, fmri, 0, &e); in xfp_declare()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c74 nvlist_t *fmri; in pci_scsi_device_create() local
80 if (fmri == NULL) in pci_scsi_device_create()
83 nvlist_free(fmri); in pci_scsi_device_create()
134 nvlist_t *fmri; in pci_smp_device_create() local
139 if (fmri == NULL) in pci_smp_device_create()
142 nvlist_free(fmri); in pci_smp_device_create()
168 nvlist_t *fmri; in pci_iport_device_create() local
173 if (fmri == NULL) in pci_iport_device_create()
176 nvlist_free(fmri); in pci_iport_device_create()
289 if (fmri == NULL) { in pci_receptacle_instantiate()
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dcpu.c166 nvlist_t *fmri; in cpu_create() local
181 if ((fmri = fmri_create(mod, cpu_id, 0, s)) == NULL) in cpu_create()
183 (void) topo_node_bind(mod, rnode, name, cpu_id, fmri); in cpu_create()
184 nvlist_free(fmri); in cpu_create()
379 nvlist_t *fmri; in cpu_str2nvl() local
458 err |= nvlist_add_uint8(fmri, FM_FMRI_CPU_MASK, 0); in cpu_str2nvl()
474 nvlist_free(fmri); in cpu_str2nvl()
477 *out = fmri; in cpu_str2nvl()
486 nvlist_t *fmri; in fmri_create() local
500 nvlist_free(fmri); in fmri_create()
[all …]
H A Dtopo_mod.c383 nvlist_free(fmri); in topo_mod_hcfmri()
418 nvlist_free(fmri); in topo_mod_devfmri()
457 nvlist_free(fmri); in topo_mod_cpufmri()
496 nvlist_free(fmri); in topo_mod_memfmri()
529 nvlist_free(fmri); in topo_mod_pkgfmri()
561 nvlist_free(fmri); in topo_mod_modfmri()
625 nvlist_free(fmri); in topo_mod_swfmri()
1015 nvlist_free(fmri); in topo_mod_create_ufm_slot()
1025 nvlist_free(fmri); in topo_mod_create_ufm_slot()
1143 nvlist_free(fmri); in topo_mod_create_ufm()
[all …]
H A Dtopo_fmri.c119 TOPO_METH_NVL2STR_VERSION, fmri, &out, err) != 0) in topo_fmri_nvl2str()
205 topo_hdl_nvdup(thp, out, fmri) != 0) in topo_fmri_str2nvl()
349 TOPO_METH_RETIRE_VERSION, fmri, &out, err) < 0) in topo_fmri_retire()
434 TOPO_METH_EXPAND_VERSION, fmri, &out, err) != 0) in topo_fmri_expand()
790 topo_fmri_strhash_one(const char *fmri, size_t len) in topo_fmri_strhash_one() argument
796 h = (h << 4) + fmri[i]; in topo_fmri_strhash_one()
895 if (strncmp(fmri, "hc://", 5) != 0) in topo_fmri_strhash_internal()
896 return (topo_fmri_strhash_one(fmri, strlen(fmri))); in topo_fmri_strhash_internal()
898 enclosure = strstr(fmri, SES_ENCLOSURE); in topo_fmri_strhash_internal()
902 auth = next = fmri + 5; in topo_fmri_strhash_internal()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dinetd.c273 fmri); in log_invalid_cfg()
713 const char *fmri = inst->fmri; in create_bound_socket() local
1331 ((ret->fmri = strdup(fmri)) == NULL)) in create_instance()
1391 free(inst->fmri); in destroy_instance()
2047 char *fmri; in process_restarter_event() local
2095 if (strcmp(instance->fmri, fmri) == 0) in process_restarter_event()
2108 free(fmri); in process_restarter_event()
2118 free(fmri); in process_restarter_event()
2142 free(fmri); in process_restarter_event()
2273 inst->fmri); in process_non_start_term()
[all …]
H A Dconfig.c379 methods[i].name, fmri); in create_method_infos()
460 read_inst_props(const char *fmri, inetd_prop_t **bprops, in read_inst_props() argument
520 bprops[i].ip_name, fmri); in valid_inst_props()
539 START_METHOD_NAME, fmri); in valid_inst_props()
545 methods[(instance_method_t)i].name, fmri); in valid_inst_props()
575 read_instance_cfg(const char *fmri) in read_instance_cfg() argument
592 if (read_inst_props(fmri, &bprops, mprops, &err) == 0) in read_instance_cfg()
705 if ((sp = scf_simple_prop_get(rep_handle, fmri, pg, in read_enable_prop()
727 read_enable_merged(const char *fmri, boolean_t *enabled) in read_enable_merged() argument
744 switch (read_enable_prop(fmri, enabled, in read_enable_merged()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/
H A Dfmevt_inbound_smf.c96 nvlist_t *ret, *fmri; in shortfmri_to_fmri() local
106 if (topo_fmri_str2nvl(thp, fmristr, &fmri, &err) != 0) { in shortfmri_to_fmri()
116 if ((ret = fmd_nvl_dup(hdl, fmri, FMD_SLEEP)) == NULL) { in shortfmri_to_fmri()
118 nvlist_free(fmri); in shortfmri_to_fmri()
123 nvlist_free(fmri); in shortfmri_to_fmri()
140 nvlist_t *fmri; in fmevt_pp_smf() local
167 if ((fmri = shortfmri_to_fmri(fmevt_hdl, svcname)) == NULL) in fmevt_pp_smf()
178 if (nvlist_add_nvlist(myattr, "svc", fmri) != 0 || in fmevt_pp_smf()
185 nvlist_free(fmri); in fmevt_pp_smf()
191 nvlist_free(fmri); in fmevt_pp_smf()
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/zambezi/
H A Dzambezi.c95 nvlist_t *fmri; in zam_tnode_create() local
99 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i, in zam_tnode_create()
103 if (fmri == NULL) { in zam_tnode_create()
110 ntn = topo_node_bind(mod, parent, name, i, fmri); in zam_tnode_create()
111 nvlist_free(fmri); in zam_tnode_create()
141 nvlist_t *fmri = NULL; in zam_declare() local
158 TOPO_PROP_RESOURCE, &fmri, &err) == 0) in zam_declare()
159 (void) topo_node_asru_set(ntn, fmri, 0, &err); in zam_declare()
160 nvlist_free(fmri); in zam_declare()
/illumos-gate/usr/src/cmd/ipf/svc/
H A Dipfd.c273 if ((state = smf_get_state(fmri)) == NULL) { in is_correct_event()
275 "%s\n", fmri, scf_strerror(scf_error())); in is_correct_event()
314 ipfilter_update(const char *fmri) in ipfilter_update() argument
326 "ipfilter for %s: %s", fmri, strerror(errno)); in ipfilter_update()
335 "%s: %s", fmri, strerror(errno)); in ipfilter_update()
350 "for: %s\n", fmri); in ipfilter_update()
570 char *fmri, *scratch; in repository_event_wait() local
599 res = _scf_notify_wait(pg, fmri, max_scf_fmri_size); in repository_event_wait()
614 syslog(LOG_DEBUG | LOG_DAEMON, "Deleted: %s", fmri); in repository_event_wait()
616 (void) strlcpy(scratch, fmri, max_scf_fmri_size); in repository_event_wait()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/hostbridge/
H A Dhb_sun4v.c103 nvlist_t *fmri; in hb_tnode_create() local
121 node = topo_node_bind(mod, parent, name, inst, fmri); in hb_tnode_create()
123 nvlist_free(fmri); in hb_tnode_create()
129 nvlist_free(fmri); in hb_tnode_create()
179 nvlist_t *fmri; in platform_pciexrc_declare() local
193 if (fmri == NULL) { in platform_pciexrc_declare()
198 if (topo_node_asru_set(rcn, fmri, 0, &err) < 0) { in platform_pciexrc_declare()
201 nvlist_free(fmri); in platform_pciexrc_declare()
204 nvlist_free(fmri); in platform_pciexrc_declare()
245 TOPO_PROP_IMMUTABLE, fmri, &err) != 0)) { in platform_pciexrc_declare()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/cpuboard/
H A Dcpuboard_hostbridge.c45 nvlist_t *fmri; in cpuboard_node_create() local
55 if ((fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, name, in cpuboard_node_create()
65 node = topo_node_bind(mp, parent, name, inst, fmri); in cpuboard_node_create()
67 nvlist_free(fmri); in cpuboard_node_create()
73 nvlist_free(fmri); in cpuboard_node_create()
114 nvlist_t *fmri; in cpuboard_rc_node_create() local
122 fmri = topo_mod_devfmri(mp, FM_DEV_SCHEME_VERSION, in cpuboard_rc_node_create()
124 if (fmri == NULL) { in cpuboard_rc_node_create()
132 if (topo_node_asru_set(rcn, fmri, 0, &err) < 0) { in cpuboard_rc_node_create()
135 nvlist_free(fmri); in cpuboard_rc_node_create()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/chip/
H A Dchip_sun4v.c127 nvlist_t *fmri; in chip_tnode_create() local
163 if (fmri == NULL) { in chip_tnode_create()
170 ntn = topo_node_bind(mod, parent, name, i, fmri); in chip_tnode_create()
177 nvlist_free(fmri); in chip_tnode_create()
180 nvlist_free(fmri); in chip_tnode_create()
212 nvlist_t *fmri; in cpu_fmri_create() local
214 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0) in cpu_fmri_create()
218 err |= nvlist_add_uint32(fmri, FM_FMRI_CPU_ID, cpuid); in cpu_fmri_create()
219 err |= nvlist_add_uint8(fmri, FM_FMRI_CPU_MASK, cpumask); in cpu_fmri_create()
223 nvlist_free(fmri); in cpu_fmri_create()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/smbios/
H A Dsmbios_enum.c135 nvlist_free(fmri); in smbios_make_slot()
141 nvlist_free(fmri); in smbios_make_slot()
142 fmri = NULL; in smbios_make_slot()
159 nvlist_free(fmri); in smbios_make_slot()
163 nvlist_free(fmri); in smbios_make_slot()
254 nvlist_free(fmri); in smbios_make_dimm()
268 nvlist_free(fmri); in smbios_make_dimm()
272 nvlist_free(fmri); in smbios_make_dimm()
479 nvlist_free(fmri); in smbios_enum_motherboard()
497 nvlist_free(fmri); in smbios_enum_motherboard()
[all …]

12345678910>>...33