/titanic_44/usr/src/lib/libshare/smbfs/ |
H A D | smbfs_scfutil.c | 115 smb_smf_instance_exists(smb_scfhandle_t *handle, char *inst_name) in smb_smf_instance_exists() argument 123 if (scf_service_get_instance(handle->scf_service, inst_name, in smb_smf_instance_exists() 138 char *inst_name) in smb_smf_instance_create() argument 148 if (!serv_prefix || !inst_name) { in smb_smf_instance_create() 151 sz = strlen(serv_prefix) + strlen(inst_name) + 2; in smb_smf_instance_create() 156 (void) snprintf(instance, sz, "%s:%s", serv_prefix, inst_name); in smb_smf_instance_create() 158 if (scf_service_get_instance(handle->scf_service, inst_name, in smb_smf_instance_create() 161 inst_name, handle->scf_instance) == SCF_SUCCESS) { in smb_smf_instance_create() 179 smb_smf_instance_delete(smb_scfhandle_t *handle, char *inst_name) in smb_smf_instance_delete() argument 188 if (scf_service_get_instance(handle->scf_service, inst_name, in smb_smf_instance_delete()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/inetadm/ |
H A D | inetadm.c | 445 char *inst_name; in list_callback() local 451 if ((inst_name = malloc(max_name_length + 1)) == NULL) in list_callback() 459 if (scf_instance_to_fmri(inst, inst_name, max_name_length + 1) < 0) in list_callback() 462 if ((prop = scf_simple_prop_get(hin, inst_name, SCF_PG_GENERAL, in list_callback() 480 if (((prop = scf_simple_prop_get(hin, inst_name, SCF_PG_GENERAL, in list_callback() 484 "property.\n"), inst_name); in list_callback() 488 if (((prop2 = scf_simple_prop_get(hin, inst_name, SCF_PG_RESTARTER, in list_callback() 492 "property.\n"), inst_name); in list_callback() 500 inst_name); in list_callback() 503 inst_name); in list_callback() [all …]
|
/titanic_44/usr/src/cmd/ipf/svc/ |
H A D | ipfd.c | 571 const char *inst_name, *pg_name; in repository_event_wait() local 617 if (scf_parse_svc_fmri(scratch, NULL, NULL, &inst_name, in repository_event_wait() 621 if (inst_name != NULL && pg_name == NULL) { in repository_event_wait()
|
/titanic_44/usr/src/cmd/svc/configd/ |
H A D | file_object.c | 2126 uint32_t inst_id, const char *inst_name) in object_snapshot_add_level() argument 2132 assert((snap_level_num == 1 && inst_name != NULL) || in object_snapshot_add_level() 2133 snap_level_num == 2 && inst_name == NULL); in object_snapshot_add_level() 2147 inst_id, inst_name); in object_snapshot_add_level() 2153 (inst_name != NULL)? inst_id : svc_id); in object_snapshot_add_level() 2174 object_snapshot_do_take(uint32_t instid, const char *inst_name, in object_snapshot_do_take() argument 2219 if (inst_name == NULL) { in object_snapshot_do_take() 2228 inst_name = inst_name_alloc; in object_snapshot_do_take() 2235 if (result == REP_PROTOCOL_SUCCESS && inst_name == NULL) in object_snapshot_do_take() 2244 svcid, svc_name, instid, inst_name); in object_snapshot_do_take() [all …]
|
/titanic_44/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 2074 const char *svc_name, *inst_name, *pg_name, *path; in get_fmri_state() local 2105 if (scf_parse_svc_fmri(lfmri, NULL, &svc_name, &inst_name, in get_fmri_state() 2119 if (inst_name != NULL) { in get_fmri_state() 2984 const char *scope_name, *svc_name, *inst_name, *pg_name; in list_instance() local 2998 &inst_name, &pg_name, NULL) != SCF_SUCCESS) { in list_instance() 3007 strcmp(rest->instance, inst_name) == 0) in list_instance() 3078 const char *svc_name, *inst_name, *pg_name, *save; in list_svc_or_inst_fmri() local 3084 if (scf_parse_svc_fmri(fmri, NULL, &svc_name, &inst_name, &pg_name, in list_svc_or_inst_fmri() 3107 if (inst_name != NULL) { in list_svc_or_inst_fmri() 3287 const char *scope_name, *svc_name, *inst_name, *pg_name; in check_against_provider() local [all …]
|
/titanic_44/usr/src/cmd/svc/startd/ |
H A D | restarter.c | 323 char *svc_name, *inst_name; in restarter_insert_inst() local 371 inst_name = startd_alloc(max_scf_name_size); in restarter_insert_inst() 409 (scf_instance_get_name(scf_inst, inst_name, max_scf_name_size) < in restarter_insert_inst() 427 (void) snprintf(logfilebuf, PATH_MAX, "%s:%s", svc_name, inst_name); in restarter_insert_inst() 677 startd_free(inst_name, max_scf_name_size); in restarter_insert_inst() 689 startd_free(inst_name, max_scf_name_size); in restarter_insert_inst()
|
H A D | graph.c | 4795 dgraph_set_instance_state(scf_handle_t *h, const char *inst_name, in dgraph_set_instance_state() argument 4806 v = vertex_get_by_name(inst_name); in dgraph_set_instance_state() 6292 char *inst_name; in process_actions() local 6294 r = libscf_instance_get_fmri(inst, &inst_name); in process_actions() 6311 vertex = vertex_get_by_name(inst_name); in process_actions() 6315 "The instance must have been removed.\n", inst_name); in process_actions() 6316 startd_free(inst_name, max_scf_fmri_size); in process_actions() 6421 inst_name); in process_actions() 6470 startd_free(inst_name, max_scf_fmri_size); in process_actions() 6772 const char *inst_name = NULL; in process_delete() local [all …]
|
/titanic_44/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 791 const char *svc_name, *inst_name, *pg_name; in get_inst_mult() local 807 if (scf_parse_svc_fmri(cfmri, NULL, &svc_name, &inst_name, &pg_name, in get_inst_mult() 825 if (inst_name != NULL) { in get_inst_mult()
|
/titanic_44/usr/src/lib/libscf/common/ |
H A D | lowlevel.c | 6350 const char *scope_name, *svc_name, *inst_name, *pg_name; in scf_walk_fmri() local 6361 if (scf_parse_svc_fmri(fmri, &scope_name, &svc_name, &inst_name, in scf_walk_fmri() 6410 if (inst_name != NULL) { in scf_walk_fmri()
|