Lines Matching refs:cur_svc

208 static scf_service_t *cur_svc = NULL;
476 ret = scf_service_get_pg(cur_svc, pg_name, pg);
913 scf_service_destroy(cur_svc);
917 cur_svc = NULL;
1748 assert(cur_svc != NULL);
1758 ent = cur_svc;
1887 if (cur_svc && cur_selection == NULL) {
2160 * Using get_pg() requires that the cur_svc/cur_inst be
2162 * if going to use lscf_select() to set up the cur_svc/cur_inst
2164 if (cur_svc) {
11240 * cur_scope, and cur_svc and cur_inst are NULL. When a service is selected,
11253 assert(cur_svc != NULL);
11259 if (scf_service_get_instance(cur_svc, name, inst) == SCF_SUCCESS) {
11286 cur_svc = svc;
11332 scf_service_destroy(cur_svc);
11336 cur_svc = svc;
11532 scf_service_destroy(cur_svc);
11534 cur_svc = NULL;
11553 } else if (cur_svc != NULL) {
11587 } else if (cur_svc != NULL) {
11588 scf_service_destroy(cur_svc);
11589 cur_svc = NULL;
11679 assert(cur_svc != NULL);
11699 if (cur_svc != NULL) {
11702 szret = scf_service_to_fmri(cur_svc, buf, bufsz);
11714 scf_service_destroy(cur_svc);
11715 cur_svc = NULL;
11780 if (cur_svc != NULL) {
11788 if (scf_iter_service_instances(iter, cur_svc) == 0) {
11868 } else if (cur_svc != NULL) {
11870 if (scf_service_add_instance(cur_svc, name, NULL) !=
12637 } else if (cur_svc != NULL) {
12642 if (scf_service_get_instance(cur_svc, fmri, inst) ==
13322 r = scf_iter_service_pgs_typed(iter, cur_svc,
13369 } else if (cur_svc != NULL) {
13370 if (scf_service_to_fmri(cur_svc, fmribuf,
13442 if (cur_svc == NULL && cur_inst == NULL) {
13462 ret = scf_iter_service_pgs(iter, cur_svc);
13693 if (cur_inst == NULL && cur_svc == NULL) {
13724 ret = scf_service_add_pg(cur_svc, name, type, flgs, pg);
13764 if (cur_inst == NULL && cur_svc == NULL) {
13790 cur_inst != NULL || cur_svc != NULL) {
13856 if (cur_inst == NULL && cur_svc == NULL) {
13881 ret = scf_service_get_pg(cur_svc, pgname, pg);
13930 scf_service_get_pg(cur_svc, pgname,
14050 if (cur_inst == NULL && cur_svc == NULL) {
14070 ret = scf_service_get_pg(cur_svc, pgn, pg);
14184 assert(cur_svc != NULL);
14185 fmrilen = scf_service_to_fmri(cur_svc, NULL, 0);
14189 if (scf_service_to_fmri(cur_svc, fmribuf, fmrilen + 1) < 0)
14217 ret = scf_iter_service_pgs(iter, cur_svc);
14388 if (cur_svc == NULL && cur_inst == NULL) {
14575 if (cur_inst == NULL && cur_svc == NULL) {
14600 ret = scf_service_get_pg(cur_svc, pgname, pg);
14784 ret = scf_service_get_pg(cur_svc, *p, pg);
14833 ret = scf_service_add_pg(cur_svc, name, type, 0, pg);
14933 if (cur_inst == NULL && cur_svc == NULL) {
14945 if (do_service && cur_svc == NULL) {
14985 ret = scf_service_get_pg(cur_svc, method, pg);
15426 r = scf_iter_service_pgs(iter, cur_svc);
15467 r = scf_service_add_pg(cur_svc, nbuf, tbuf,
15669 if (cur_inst == NULL && cur_svc == NULL) {
16767 cur_svc = svc;
16778 cur_svc = NULL;
16891 cur_svc = svc;
16894 cur_svc = NULL;
16909 cur_svc = NULL;
17217 cur_svc = svc;
17224 cur_svc = NULL;
17539 } else if (cur_svc != NULL) {
17547 if (scf_iter_service_instances(iter, cur_svc) != 0)
17621 else if (cur_svc != NULL)