Lines Matching defs:handle

419 	smb_scfhandle_t *handle;
425 handle = smb_smf_scf_init(svc_fmri_prefix);
426 if (handle == NULL) {
431 (void) smb_smf_create_service_pgroup(handle, svc_propgrp);
433 if (smb_smf_get_string_property(handle, name, value,
435 smb_smf_scf_fini(handle);
440 smb_smf_scf_fini(handle);
449 smb_scfhandle_t *handle = NULL;
453 handle = smb_smf_scf_init(svc_fmri_prefix);
454 if (handle == NULL) {
458 (void) smb_smf_create_service_pgroup(handle, svc_propgrp);
460 if (smb_smf_start_transaction(handle) != SMBD_SMF_OK) {
461 smb_smf_scf_fini(handle);
465 if (smb_smf_set_string_property(handle, name, value) != SMBD_SMF_OK)
468 if (smb_smf_end_transaction(handle) != SMBD_SMF_OK)
471 smb_smf_scf_fini(handle);
483 smb_scfhandle_t *handle;
495 handle = smb_smf_scf_init(SMBD_FMRI_PREFIX);
496 if (handle == NULL)
499 if ((rc = smb_smf_create_service_pgroup(handle,
503 if ((rc = smb_smf_get_string_property(handle, cfg->sc_name,
513 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
514 if (handle == NULL)
519 rc = smb_smf_create_service_pgroup(handle, pg);
521 rc = smb_smf_get_string_property(handle, cfg->sc_name,
526 smb_smf_scf_fini(handle);
598 smb_scfhandle_t *handle;
607 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
608 if (handle == NULL)
611 rc = smb_smf_create_service_pgroup(handle, SMB_PG_NAME);
613 rc = smb_smf_get_count_property(handle, cfg->sc_name, &val);
614 smb_smf_scf_fini(handle);
630 smb_scfhandle_t *handle;
639 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
640 if (handle == NULL)
643 rc = smb_smf_create_service_pgroup(handle, SMB_PG_NAME);
645 rc = smb_smf_get_integer_property(handle, cfg->sc_name, &val);
646 smb_smf_scf_fini(handle);
662 smb_scfhandle_t *handle;
670 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
671 if (handle == NULL)
674 rc = smb_smf_create_service_pgroup(handle, SMB_PG_NAME);
676 rc = smb_smf_get_boolean_property(handle, cfg->sc_name, &vbool);
677 smb_smf_scf_fini(handle);
727 smb_scfhandle_t *handle;
741 handle = smb_smf_scf_init(SMBD_FMRI_PREFIX);
746 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
750 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
755 if (handle == NULL)
758 rc = smb_smf_create_service_pgroup(handle, pg);
760 rc = smb_smf_start_transaction(handle);
763 smb_smf_scf_fini(handle);
769 (void) smb_smf_end_transaction(handle);
770 smb_smf_scf_fini(handle);
777 rc = smb_smf_set_string_property(handle, cfg->sc_name, value);
780 (void) smb_smf_end_transaction(handle);
781 smb_smf_scf_fini(handle);
794 smb_scfhandle_t *handle;
801 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
802 if (handle == NULL)
805 rc = smb_smf_create_service_pgroup(handle, SMB_PG_NAME);
807 rc = smb_smf_start_transaction(handle);
810 smb_smf_scf_fini(handle);
814 rc = smb_smf_set_count_property(handle, cfg->sc_name, value);
816 (void) smb_smf_end_transaction(handle);
817 smb_smf_scf_fini(handle);
829 smb_scfhandle_t *handle;
836 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
837 if (handle == NULL)
840 rc = smb_smf_create_service_pgroup(handle, SMB_PG_NAME);
842 rc = smb_smf_start_transaction(handle);
845 smb_smf_scf_fini(handle);
849 rc = smb_smf_set_integer_property(handle, cfg->sc_name, value);
851 (void) smb_smf_end_transaction(handle);
852 smb_smf_scf_fini(handle);
864 smb_scfhandle_t *handle;
871 handle = smb_smf_scf_init(SMB_FMRI_PREFIX);
872 if (handle == NULL)
875 rc = smb_smf_create_service_pgroup(handle, SMB_PG_NAME);
877 rc = smb_smf_start_transaction(handle);
880 smb_smf_scf_fini(handle);
884 rc = smb_smf_set_boolean_property(handle, cfg->sc_name, value);
886 (void) smb_smf_end_transaction(handle);
887 smb_smf_scf_fini(handle);