Lines Matching defs:handle

345 port_door_call(dladm_handle_t handle, datalink_id_t linkid,
351 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
528 set_count_property(scf_handle_t *handle, scf_transaction_t *tran,
534 if ((entry = scf_entry_create(handle)) == NULL)
537 if ((value = scf_value_create(handle)) == NULL)
559 set_string_property(scf_handle_t *handle, scf_transaction_t *tran,
565 if ((entry = scf_entry_create(handle)) == NULL)
568 if ((value = scf_value_create(handle)) == NULL)
591 set_fmri_property(scf_handle_t *handle, scf_transaction_t *tran,
597 if ((entry = scf_entry_create(handle)) == NULL)
600 if ((value = scf_value_create(handle)) == NULL)
623 dladm_bridge_persist_conf(dladm_handle_t handle, const char *link,
629 status = dladm_create_conf(handle, link, linkid, DATALINK_CLASS_BRIDGE,
636 status = dladm_write_conf(handle, conf);
637 dladm_destroy_conf(handle, conf);
865 dladm_bridge_configure(dladm_handle_t handle, const char *name,
890 status = dladm_create_datalink_id(handle, linkname,
897 (status = dladm_bridge_persist_conf(handle, linkname,
1016 (void) dladm_remove_conf(handle, linkid);
1017 (void) dladm_destroy_datalink_id(handle, linkid, flags);
1040 dladm_bridge_setlink(dladm_handle_t handle, datalink_id_t linkid,
1052 status = dladm_open_conf(handle, linkid, &conf);
1057 status = dladm_get_conf_field(handle, conf, FBRIDGE, oldbridge,
1074 status = dladm_set_conf_field(handle, conf, FBRIDGE,
1078 status = dladm_unset_conf_field(handle, conf, FBRIDGE);
1085 status = dladm_write_conf(handle, conf);
1088 dladm_destroy_conf(handle, conf);
1101 dladm_bridge_getlink(dladm_handle_t handle, datalink_id_t linkid, char *bridge,
1107 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1112 status = dladm_get_conf_field(handle, conf, FBRIDGE, bridge, bridgelen);
1116 dladm_destroy_conf(handle, conf);
1121 dladm_bridge_refresh(dladm_handle_t handle, datalink_id_t linkid)
1126 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
1140 i_dladm_bridge_is_held(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1147 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1150 status = dladm_get_conf_field(handle, conf, FBRIDGE, bridge,
1154 dladm_destroy_conf(handle, conf);
1157 dladm_destroy_conf(handle, conf);
1166 dladm_bridge_delete(dladm_handle_t handle, const char *bridge, uint32_t flags)
1178 if (dladm_name2info(handle, linkname, &linkid, NULL, NULL, NULL) !=
1181 else if (dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1200 (void) dladm_walk_datalink_id(i_dladm_bridge_is_held, handle,
1220 (void) dladm_set_linkprop(handle, linkid, NULL, NULL, 0,
1222 (void) dladm_destroy_datalink_id(handle, linkid,
1227 (void) dladm_remove_conf(handle, linkid);
1228 (void) dladm_destroy_datalink_id(handle, linkid,
1353 dladm_bridge_get_port_cfg(dladm_handle_t handle, datalink_id_t linkid,
1359 status = port_door_call(handle, linkid, bdcPortGetConfig, &portcfg,
1389 dladm_bridge_link_state(dladm_handle_t handle, datalink_id_t linkid,
1392 return (port_door_call(handle, linkid, bdcPortGetState, spsp, 0,
1398 dladm_bridge_get_forwarding(dladm_handle_t handle, datalink_id_t linkid,
1404 status = port_door_call(handle, linkid, bdcPortGetForwarding, twoints,
1413 dladm_bridge_get_fwdtable(dladm_handle_t handle, const char *bridge,
1435 rc = ioctl(dladm_dld_fd(handle), BRIDGE_IOC_LISTFWD, &blfread);