Searched refs:fmri (Results 51 - 75 of 193) sorted by relevance

12345678

/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_enum.c213 nvlist_t *auth, *fmri; local
241 if ((fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION,
253 edp->ed_instance, fmri)) == NULL) {
254 nvlist_free(fmri);
292 nvlist_free(fmri);
332 if (topo_node_resource(tn, &fmri, &err) != 0) {
339 if (topo_node_fru(pnode, &fmri, NULL, &err) != 0) {
347 if (topo_node_fru_set(tn, fmri, 0, &err) != 0) {
348 nvlist_free(fmri);
357 nvlist_free(fmri);
[all...]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlbridge.c82 char *fmri; local
87 if ((fmri = malloc(max_fmri)) != NULL) {
88 (void) snprintf(fmri, max_fmri, "svc:/%s:%s", service,
91 return (fmri);
101 char *fmri = NULL; local
114 fmri = alloc_fmri(service, instance_name);
116 if (scf_handle_decode_fmri(sstate->ss_handle, fmri, NULL, NULL,
120 free(fmri);
124 free(fmri);
134 exact_instance(const char *fmri, scf_state_ argument
365 char *fmri; local
673 char *fmri = alloc_fmri(service_name, instance); local
692 char *fmri = alloc_fmri(service_name, instance); local
756 char *fmri = NULL; local
1531 char *fmri; local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/disk-transport/
H A Ddisk_transport.c112 nvlist_t *fmri, *faults; local
123 if (topo_node_resource(node, &fmri, &err) != 0) {
124 fmd_hdl_error(dmp->dm_hdl, "failed to get fmri: %s\n",
130 nvlist_free(fmri);
136 if (topo_fmri_nvl2str(thp, fmri, &fmristr, &err) == 0 &&
148 nvlist_free(fmri);
174 nvpair_name(elem), ena, fmri, details);
179 nvlist_free(fmri);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Denv.c128 *np = uu_msprintf("SMF_FMRI=%s", instance->fmri);
156 if (!valid_env_var(*p, instance->fmri, method))
159 if ((dup_pos = find_dup(*p, nenv, instance->fmri,
/illumos-gate/usr/src/cmd/acctadm/
H A Daconf.c120 aconf_setup(const char *fmri) argument
131 if ((type = aconf_fmri2type(fmri)) == -1) {
132 warn(gettext("no accounting type for %s\n"), fmri);
145 (void) smf_disable_instance(fmri, 0);
151 if (aconf_scf_init(fmri) == -1) {
411 aconf_fmri2type(const char *fmri) argument
413 if (strcmp(fmri, FMRI_PROC_ACCT) == 0)
415 else if (strcmp(fmri, FMRI_TASK_ACCT) == 0)
417 else if (strcmp(fmri, FMRI_FLOW_ACCT) == 0)
419 else if (strcmp(fmri, FMRI_NET_ACC
426 aconf_scf_init(const char *fmri) argument
[all...]
H A Dmain.c130 const char *fmri; /* FMRI for this instance */ local
273 if ((fmri = getenv("SMF_FMRI")) != NULL) {
274 int ret = aconf_setup(fmri);
289 fmri = aconf_type2fmri(type);
290 if (aconf_scf_init(fmri) == -1)
291 die(gettext("cannot connect to repository for %s\n"), fmri);
539 smf_state = smf_get_state(fmri);
546 if (smf_enable_instance(fmri, 0) == -1)
548 fmri);
551 if (smf_disable_instance(fmri,
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dsmfcfg.c34 fs_smf_init(char *fmri, char *instance) argument
43 snprintf(srv, MAXPATHLEN, "%s", fmri + strlen("svc:/"));
77 gettext("Cannot access SMF repository: %s\n"), fmri);
83 fprintf(stderr, gettext("SMF Initialization problems..%s\n"), fmri);
108 char *instance, scf_type_t sctype, char *fmri)
128 snprintf(srv, MAXPATHLEN, "%s", fmri);
129 p = strstr(fmri, ":default");
139 phandle = fs_smf_init(fmri, instance);
241 char *instance, scf_type_t sctype, char *fmri, int *bufsz)
259 snprintf(srv, MAXPATHLEN, "%s", fmri);
107 fs_smf_set_prop(smf_fstype_t fstype, char *prop_name, char *valbuf, char *instance, scf_type_t sctype, char *fmri) argument
240 fs_smf_get_prop(smf_fstype_t fstype, char *prop_name, char *cbuf, char *instance, scf_type_t sctype, char *fmri, int *bufsz) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Denm.c373 char *fmri, *smf_state; local
398 if (nwam_value_get_string(fmrival, &fmri) != NWAM_SUCCESS) {
400 "fmri string for enm %s",
408 if ((smf_state = smf_get_state(fmri)) == NULL) {
409 nlog(LOG_ERR, "nwamd_enm_activate: invalid fmri %s "
410 "for enm %s", fmri, object->nwamd_object_name);
418 fmri, object->nwamd_object_name);
421 ret = smf_restart_instance(fmri);
423 ret = smf_restart_instance(fmri);
425 ret = smf_enable_instance(fmri, SMF_TEMPORAR
481 char *fmri, *smf_state; local
[all...]
H A Dutil.c307 * fmri is the instance to look up
323 create_scf_resources(const char *fmri, scf_resources_t *res) argument
344 if (scf_handle_decode_fmri(res->sr_handle, fmri, NULL, NULL,
381 * fmri is the instance to look up
399 get_property_value(const char *fmri, const char *pg, const char *prop, argument
402 if (create_scf_resources(fmri, res) != 0)
424 * lfmri is the instance fmri to look up
465 * lfmri is the instance fmri to look up
512 * lfmri is the instance fmri to look up
597 nwamd_set_count_property(const char *fmri, cons argument
630 nwamd_set_string_property(const char *fmri, const char *pg, const char *prop, const char *str) argument
668 nwamd_delete_scf_property(const char *fmri, const char *pg, const char *prop) argument
[all...]
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_internal.c1059 * EBADF - pg is corrupt (error printed if fmri is given)
1064 load_pg(const scf_propertygroup_t *pg, pgroup_t **ipgp, const char *fmri, argument
1143 if (fmri != NULL) {
1148 ipg->sc_pgroup_name, fmri, local
1155 ipg->sc_pgroup_name, snapname, fmri, local
1172 * Load the instance for fmri from the repository into memory. The
1179 load_instance(const char *fmri, const char *name, entity_t **inst_ptr) argument
1200 if (scf_handle_decode_fmri(g_hndl, fmri, NULL, NULL, inst, NULL, NULL,
1249 e->sc_fmri = uu_strdup(fmri);
1280 if ((rc = load_pg(load_pgroup, &ipg, fmri, NUL
1337 prop_equal(property_t *p1, property_t *p2, const char *fmri, const char *pgname, int new) argument
1407 pg_attrs_equal(const pgroup_t *pg1, const pgroup_t *pg2, const char *fmri, int new) argument
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dfm.c33 * The embodiment of an FMA protocol element (event, fmri or authority) is a
106 kstat_named_t fmri_set_failed; /* num fmri set failures */
113 { "fmri-set-failed", KSTAT_DATA_UINT64 },
857 * Set-up and validate the members of an hc fmri according to;
873 fm_fmri_hc_set_common(nvlist_t *fmri, int version, const nvlist_t *auth) argument
880 if (nvlist_add_uint8(fmri, FM_VERSION, version) != 0 ||
881 nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_HC) != 0) {
886 if (auth != NULL && nvlist_add_nvlist(fmri, FM_FMRI_AUTHORITY,
896 fm_fmri_hc_set(nvlist_t *fmri, int version, const nvlist_t *auth, argument
899 nv_alloc_t *nva = nvlist_lookup_nv_alloc(fmri);
1051 fm_fmri_mem_set(nvlist_t *fmri, int version, const nvlist_t *auth, const char *unum, const char *serial, uint64_t offset) argument
1101 fm_fmri_zfs_set(nvlist_t *fmri, int version, uint64_t pool_guid, uint64_t vdev_guid) argument
1287 fm_fmri_hc_create(nvlist_t *fmri, int version, const nvlist_t *auth, nvlist_t *snvl, nvlist_t *bboard, int npairs, ...) argument
[all...]
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c140 * Pathname storage for path generated from the fmri.
214 const char *fmri; member in struct:ht_elem
231 free((char *)elem->fmri);
253 ht_hash_fmri(const char *fmri) argument
259 assert(strncmp(fmri, "svc:/", sizeof ("svc:/") - 1) == 0);
260 k = fmri + sizeof ("svc:/") - 1;
297 h = ht_hash_fmri(elem->fmri);
316 ht_add(const char *fmri) argument
321 h = ht_hash_fmri(fmri);
326 if (strcmp(elem->fmri, fmr
715 common_by_restarter(scf_instance_t *inst, const char *fmri, int *restarter_specp) argument
859 pids_by_restarter(scf_instance_t *inst, const char *fmri, pid_t **pids, uint_t *np, int *restarter_specp) argument
904 instance_processes(scf_instance_t *inst, const char *fmri, pid_t **pids, uint_t *np) argument
2072 get_fmri_state(char *fmri, char *state, size_t state_sz) argument
2841 print_notify_fmri(const char *fmri) argument
3078 char *fmri; local
3390 add_restarter(const char *fmri) argument
[all...]
/illumos-gate/usr/src/cmd/print/selector/
H A Dprint-service88 local ($fmri, $property) = @_;
91 open($FH, "$SVCPROP -C -p $property $fmri 2>/dev/null |");
99 local ($fmri, $operation) = @_;
102 open($FH, "$SVCCFG -s $fmri \"$operation\" 2>/dev/null |");
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dplatform.h65 int platform_path_exists(nvlist_t *fmri);
/illumos-gate/usr/src/cmd/auditreduce/
H A Dauditrd.h63 scf_pattern_t fmri; /* 'o' fmri value */ variable
/illumos-gate/usr/src/cmd/svc/common/
H A Di.manifest51 # <fmri>< ><manifest file>< ><package name>
62 for fmri in $ENTITIES; do
64 # If fmri matches one in deathrow file, remove the
68 $AWK "(\$1==\"$fmri\") \
H A Dr.manifest69 # <fmri>< ><manifest file>< ><package name>
78 for fmri in $ENTITIES; do
80 echo ${fmri} ${manifest} $2 >> ${DEATHROW_FILE}
/illumos-gate/usr/src/cmd/svc/startd/
H A Dgraph.c1073 * Returns 0, EEXIST, or EINVAL if the arguments are invalid (i.e., fmri
1077 graph_insert_vertex_unconfigured(const char *fmri, gv_type_t type, argument
1088 if (strncmp(fmri, "svc:", sizeof ("svc:") - 1) != 0)
1093 if (strncmp(fmri, "file:", sizeof ("file:") - 1) != 0)
1109 *vp = vertex_get_by_name(fmri);
1113 *vp = graph_add_vertex(fmri);
1123 if (strcmp(fmri, special_vertices[i].name) == 0) {
1140 sfmri = inst_fmri_to_svc_fmri(fmri);
2161 * The fmri doesn't specify an instance - translate
2177 * Add all of the instances of the service named by fmri t
2186 add_service(const char *fmri, scf_handle_t *h, boolean_t *reboundp) argument
2339 process_dependency_fmri(const char *fmri, struct depfmri_info *info) argument
2538 char *fmri, *pg_name; local
2741 handle_cycle(const char *fmri, int *path) argument
3018 char *fmri; local
4175 char *fmri; local
4985 dgraph_remove_instance(const char *fmri, scf_handle_t *h) argument
5551 dgraph_set_milestone(const char *fmri, scf_handle_t *h, boolean_t norepository) argument
5857 char *fmri, *cfmri; local
6090 char *fmri; local
6483 char *fmri; local
6764 process_delete(char *fmri, scf_handle_t *h) argument
6823 char *fmri = startd_alloc(max_scf_fmri_size); local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_dimm.c59 nvlist_t *fmri; local
61 if ((fmri = cmd_mem_fmri_derive(hdl, afar, afsr, synd)) == NULL)
64 if (fmd_nvl_fmri_expand(hdl, fmri) < 0) {
65 nvlist_free(fmri);
69 return (fmri);
211 nvlist_t *fmri; local
234 fmri = cmd_mem_fmri_create(unum, serids, nserids);
235 if (fmd_nvl_fmri_expand(hdl, fmri) < 0) {
237 nvlist_free(fmri);
253 cmd_fmri_init(hdl, &dimm->dimm_asru, fmri, "dimm_asru
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4/ioboard/
H A Dioboard.c165 nvlist_t *fmri; local
169 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i,
172 if (fmri == NULL) {
177 ntn = topo_node_bind(mod, parent, name, i, fmri);
184 nvlist_free(fmri);
187 nvlist_free(fmri);
/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/cpuboard/
H A Dcpuboard.c245 nvlist_t *fmri; local
249 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i,
253 if (fmri == NULL) {
260 ntn = topo_node_bind(mod, parent, name, i, fmri);
267 nvlist_free(fmri);
273 nvlist_free(fmri);
293 nvlist_t *fmri; local
296 if (topo_node_resource(tn, &fmri, &err) < 0 ||
297 fmri == NULL) {
302 e = topo_node_fru_set(tn, fmri,
347 nvlist_t *fmri = NULL; local
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/motherboard/
H A Dmotherboard.c284 nvlist_t *fmri; local
317 fmri = topo_mod_hcfmri(mod, NULL, FM_HC_SCHEME_VERSION, name, i,
325 if (fmri == NULL) {
333 ntn = topo_node_bind(mod, parent, name, i, fmri);
341 nvlist_free(fmri);
348 nvlist_free(fmri);
361 nvlist_t *fmri; local
369 if (topo_node_resource(ntn, &fmri, &err) < 0) {
374 if (topo_node_fru_set(ntn, fmri, 0, &err) < 0)
376 nvlist_free(fmri);
[all...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dsvc.c172 nvlist_t *fmri; local
185 * correct the fmri string before we try to convert it to an nvlist.
204 if (topo_mod_str2nvl(mod, fixed, &fmri) < 0) {
215 nvlist_free(fmri);
218 if ((tn = topo_node_bind(mod, pnode, fmristr, 0, fmri)) == NULL) {
221 nvlist_free(fmri);
224 nvlist_free(fmri);
503 if (nvlist_add_string(fmristr, "fmri-string", buf) != 0) {
519 nvlist_t *fmri; local
525 if (nvlist_lookup_string(in, "fmri
697 svc_get_state(topo_mod_t *mod, nvlist_t *fmri, boolean_t presence_only, int *ret) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-mem/
H A Dmem.c583 nvlist_t *fmri; local
585 if (topo_mod_nvalloc(mod, &fmri, NV_UNIQUE_NAME) != 0)
587 err = nvlist_add_uint8(fmri, FM_VERSION, FM_MEM_SCHEME_VERSION);
588 err |= nvlist_add_string(fmri, FM_FMRI_SCHEME, FM_FMRI_SCHEME_MEM);
589 err |= nvlist_add_string(fmri, FM_FMRI_MEM_UNUM, unum);
591 err |= nvlist_add_string_array(fmri,
594 nvlist_free(fmri);
599 return (fmri);
606 nvlist_t *fmri; local
609 fmri
[all...]

Completed in 93 milliseconds

12345678