Lines Matching defs:handle

104  * handle - returned handle
105 * service - returned service handle
108 fcoe_cfg_scf_init(scf_handle_t **handle, scf_service_t **service, int is_target)
113 if ((*handle = scf_handle_create(SCF_VERSION)) == NULL) {
120 if (scf_handle_bind(*handle) == -1) {
127 if ((*service = scf_service_create(*handle)) == NULL) {
134 if ((scope = scf_scope_create(*handle)) == NULL) {
141 if (scf_handle_get_scope(*handle, SCF_SCOPE_LOCAL, scope) == -1) {
162 if (*handle != NULL) {
163 scf_handle_destroy(*handle);
180 scf_handle_t *handle = NULL;
204 ret = fcoe_cfg_scf_init(&handle, &svc, is_target);
209 if (((pg = scf_pg_create(handle)) == NULL) ||
210 ((tran = scf_transaction_create(handle)) == NULL) ||
211 ((entry = scf_entry_create(handle)) == NULL) ||
212 ((prop = scf_property_create(handle)) == NULL) ||
213 ((valueIter = scf_iter_create(handle)) == NULL)) {
298 valueLookup = scf_value_create(handle);
337 valueSet[i] = scf_value_create(handle);
385 valueSet[i] = scf_value_create(handle);
431 if (handle != NULL) {
432 scf_handle_destroy(handle);
486 dladm_handle_t handle;
500 if (dladm_open(&handle, NETADM_ACTIVE_PROFILE) != DLADM_STATUS_OK) {
504 if (dladm_name2info(handle, (const char *)macLinkName,
506 dladm_close(handle);
517 dladm_close(handle);
523 dladm_close(handle);
540 dladm_close(handle);
549 dladm_close(handle);
616 dladm_close(handle);
626 dladm_handle_t handle;
639 if (dladm_open(&handle, NETADM_ACTIVE_PROFILE) != DLADM_STATUS_OK) {
643 if (dladm_name2info(handle, (const char *)macLinkName,
645 dladm_close(handle);
648 dladm_close(handle);
734 dladm_handle_t handle;
790 if (dladm_open(&handle, NETADM_ACTIVE_PROFILE)
792 handle = NULL;
803 if (handle == NULL ||
804 dladm_datalink_id2info(handle, pi->fpi_mac_linkid,
822 if (handle != NULL) {
823 dladm_close(handle);
840 scf_handle_t *handle = NULL;
855 commitRet = fcoe_cfg_scf_init(&handle, &svc, portType);
860 if (((pg = scf_pg_create(handle)) == NULL) ||
861 ((tran = scf_transaction_create(handle)) == NULL) ||
862 ((entry = scf_entry_create(handle)) == NULL) ||
863 ((prop = scf_property_create(handle)) == NULL) ||
864 ((valueIter = scf_iter_create(handle)) == NULL)) {
878 valueLookup = scf_value_create(handle);
949 if (handle != NULL) {
950 scf_handle_destroy(handle);
999 dladm_handle_t handle;
1013 if (dladm_open(&handle, NETADM_ACTIVE_PROFILE) != DLADM_STATUS_OK) {
1017 if (dladm_name2info(handle, (const char *)macLinkName,
1019 dladm_close(handle);
1022 dladm_close(handle);