Lines Matching defs:instance

152  * service instance related defines
164 scf_instance_t *instance;
197 if (handle->instance != NULL)
198 scf_instance_destroy(handle->instance);
249 handle->instance = scf_instance_create(handle->handle);
251 handle->pg == NULL || handle->instance == NULL)
886 * Get the config info for the instance of a group and create an
891 scf_instance_t *instance)
912 if (scf_instance_get_name(instance, buff, scf_max_name_len) > 0) {
913 if (scf_iter_instance_pgs(iter, instance) != 0) {
989 scf_iter_instance_pgs(iter, instance) == 0) {
1022 * Returns B_TRUE if SMF group instance is in online or offline state.
1027 sa_upgrade_instance_is_enabled(scf_instance_t *instance)
1036 ret = scf_instance_to_fmri(instance, fmri, fmri_len + 1);
1057 * instance (/network/shares/group:*) and return it in nvlist format.
1066 scf_instance_t *instance;
1068 instance = scf_instance_create(handle->handle);
1070 instance) != SCF_SUCCESS) {
1075 if (!force_upgrade && !sa_upgrade_instance_is_enabled(instance)) {
1088 ret = sa_upgrade_extract_group(glist, handle, instance);
1097 if (instance != NULL)
1098 scf_instance_destroy(instance);
1105 * This method deletes the SMF group instance (/network/shares/group:*),
1113 scf_instance_t *instance;
1115 instance = scf_instance_create(handle->handle);
1117 instance) != SCF_SUCCESS) {
1122 if (!force_upgrade && !sa_upgrade_instance_is_enabled(instance)) {
1129 ret = scf_instance_delete(instance);
1134 if (instance != NULL)
1135 scf_instance_destroy(instance);
1472 * in the new SMF instance for libshare v2. It also publishes the new share.