Lines Matching defs:instance
63 add_property_group_to_instance(scf_handle_t *handle, scf_instance_t *instance,
78 if (scf_instance_add_pg(instance, pg_name, pg_type, 0, pg) != 0) {
83 "Error: another process is modifying this instance."
176 add_pg_method(scf_handle_t *handle, scf_instance_t *instance,
188 pg = add_property_group_to_instance(handle, instance,
307 scf_instance_t *instance;
309 instance = scf_instance_create(handle);
310 if (instance == NULL) {
318 if (scf_service_get_instance(svc, inaddr_any_name, instance) == 0) {
319 /* Let the caller deal with the duplicate instance */
324 if (scf_service_add_instance(svc, instance_name, instance) != 0) {
326 /* Let the caller deal with the duplicate instance */
338 if ((add_pg_method(handle, instance, kssl_entry, "start",
340 (add_pg_method(handle, instance, kssl_entry, "refresh",
342 (add_pg_method(handle, instance, kssl_entry, "stop",
344 scf_instance_destroy(instance);
348 /* enabling the instance */
353 if (scf_instance_to_fmri(instance, buf, max_fmri_len + 1) > 0) {
366 if (instance != NULL)
367 scf_instance_destroy(instance);
469 * in the start method of the SMF instance created. So, we do only
566 * the SMF instance from the current arguments.
628 gettext("Error: INADDR_ANY instance exists."
629 " Can not create a new instance %s.\n"),
638 * Delete the existing instance and create a new instance
641 KSSL_DEBUG("Deleting duplicate instance\n");
645 "Error: Can not delete existing instance %s.\n"),
649 "Note: reconfiguring the existing instance %s.\n"),