Lines Matching defs:instance

56 	scf_instance_t	*inst;		/* instance handle */
74 #define FREE_INSTANCE() { if (instance) free((void *)instance); }
87 /* libscf instance cleanup */
126 /* libscf instance generic setup */
165 /* libscf instance specific init */
207 /* libscf instance specific init */
217 /* re-set any libscf instance specific init */
342 char *instance = __getscf_instname(self);
395 if (instance == NULL) {
403 instnm = strrchr(instance, ':');
406 "Service is not an instance");
414 "Service is not an instance");
500 char *instance = __getscf_instfmri(self);
560 /* Always get composed properties using instance name */
561 if (instance == NULL) {
566 instnm = strrchr(instance, ':');
577 "Could not get service instance");
669 PyErr_SetString(NssscfError, "Service is not an instance");
678 * Get Service instance fmri
680 * OUT: String of current instance fmri
686 char *instance = __getscf_instfmri(self);
689 if (instance == NULL) {
690 PyErr_SetString(NssscfError, "Service is not an instance");
693 pyobject = Py_BuildValue("s", instance);
712 PyErr_SetString(NssscfError, "Service is not an instance");
732 char *instance = __getscf_instname(self);
746 if (instance == NULL) {
749 instnm = strrchr(instance, ':');
751 free((void *)instance);
754 "Service is not an instance");
760 free((void *)instance);
763 "Service is not an instance");
789 char *instance = __getscf_instname(self);
803 if (instance == NULL) {
807 instnm = strrchr(instance, ':');
812 "Service is not an instance");
821 "Service is not an instance");
843 char *instance = __getscf_instname(self);
857 if (instance == NULL) {
860 instnm = strrchr(instance, ':');
864 "Service is not an instance");
873 "Service is not an instance");
892 * Delcust (delete customizations) on a service and instance property group
899 char *instance = __getscf_instfmri(self);
910 /* do instance work - for effect */
911 if (instance != NULL) {
912 instnm = strrchr(instance, ':');
953 char *instance = __getscf_instname(self);
1032 if (instance == NULL) {
1040 instnm = strrchr(instance, ':');
1043 "Service is not an instance");
1051 "Service is not an instance");
1166 * IN: fmri and new state (fmri defaults to fmri:default if not an instance)
1178 char *instance = __getscf_instfmri(self);
1181 if (instance == NULL) {
1182 PyErr_SetString(NssscfError, "Service is not an instance");
1187 success = smf_enable_instance(instance, 0);
1190 success = smf_disable_instance(instance, 0);
1193 success = smf_refresh_instance(instance);
1196 success = smf_restart_instance(instance);
1199 success = smf_maintain_instance(instance, SMF_IMMEDIATE);
1202 success = smf_degrade_instance(instance, SMF_IMMEDIATE);
1205 success = smf_restore_instance(instance);
1264 char *instance = __getscf_instfmri(self);
1269 if (instance == NULL) {
1270 PyErr_SetString(NssscfError, "Service is not an instance");
1273 success = scf_tmpl_validate_fmri(self->handle, instance,
1342 "Get Service instance FMRI. (May be identical to service name)" },
1359 "Enable service instance" },
1361 "Disable service instance" },
1363 "Refresh service instance" },
1365 "Restart service instance" },
1367 "Immediately send service instance to maintenance state" },
1369 "Immediately send service instance to degraded state" },
1371 "Restore service instance" },
1373 "Validate current service instance configuration" },
1511 * Get the full AS-IS service name. [svc:/]service[:instance]
1531 * Get the service name if it is an instance, NULL otherwise
1545 return (svcn); /* service has an instance name */
1551 * Get the service name if it is not and instance, append :default
1566 return (svcn); /* service is an instance name */
1575 * Sets the Python instance's smf service handle
1589 *inst = '\0'; /* trim instance if provided */
1597 * Given a service name, if it is an instance, return the
1605 char *instance = __getscf_instfmri(self);
1608 if (instance == NULL) {
1609 PyErr_SetString(NssscfError, "Service is not an instance");
1612 state = smf_get_state(instance);