Lines Matching defs:svc
28 * the service schema. The official version of a svc FMRI has the form:
30 * svc://[scope@][system-fqn]/service[:instance][@contract-id]
36 * svc:///network/ssh:default
39 * authority is elided (svc:/network/ssh:default). As this module deals with
54 #include <svc.h>
93 { "svc", FM_FMRI_SCHEME_SVC, SVC_VERSION, &svc_ops };
170 * the scf_{x}_to_fmri interfaces return short-hand svc-scheme FMRI's
173 * svc:/service[:instance]
175 * But all our other code assumes a proper svc-scheme FMRI, so we
236 scf_service_t *svc = NULL;
249 (svc = scf_service_create(hdl)) == NULL ||
261 while (scf_iter_next_service(svc_iter, svc) == 1) {
262 if (scf_iter_service_instances(inst_iter, svc) != 0)
265 if ((slen = scf_service_to_fmri(svc, NULL, 0)) < 0)
272 if (scf_service_to_fmri(svc, sfmri, slen + 1) == -1)
308 scf_service_destroy(svc);
369 * Lookup a topo node named svc:/svc_name[:svc_inst]
382 (void) snprintf(search, len, "svc:/%s", svc_name);
391 (void) snprintf(search, len, "svc:/%s:%s", svc_name, svc_inst);
460 * svc://[scope@][system-fqn]
467 /* svc path */
519 if (strncmp(str, "svc://", 6) != 0)
643 * svc name deleted UNKNOWN
644 * svc name not found UNKNOWN
692 scf_service_t *svc = NULL;
711 if ((svc = scf_service_create(hdl)) == NULL ||
727 if (scf_scope_get_service(scope, name, svc) != 0) {
745 if (scf_service_get_instance(svc, instance, inst) != 0) {
795 scf_service_destroy(svc);