Lines Matching defs:handle

222 static dladm_handle_t handle = NULL;
245 /* close dladm handle if it was opened */
246 if (handle != NULL)
247 dladm_close(handle);
276 /* Open the libdladm handle */
277 if ((status = dladm_open(&handle)) != DLADM_STATUS_OK) {
284 dladm_close(handle);
316 status = dladm_flow_init(handle);
354 if (dladm_name2info(handle, devname, &linkid, NULL,
398 status = dladm_flow_add(handle, linkid, attrlist, proplist, name,
435 if (dladm_name2info(handle, linkname, &linkid, NULL,
456 status = dladm_flow_remove(handle, flowname, t_arg, altroot);
465 status = dladm_walk_flow(remove_flow, handle, linkid, &state,
484 remove_flow(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
488 state->fs_status = dladm_flow_remove(handle, attr->fa_flowname,
505 if ((status = dladm_datalink_id2info(handle, attr->fa_linkid, NULL,
538 show_flow(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
565 if (dladm_flow_info(handle, name, &attr) != DLADM_STATUS_OK)
568 (void) show_flow(handle, &attr, arg);
625 if (dladm_name2info(handle, linkname, &linkid, NULL,
654 (void) show_flows_onelink(handle, linkid, &state);
658 (void) dladm_walk_datalink_id(show_flows_onelink, handle,
672 status = dladm_set_flowprop(handle, flow, prop_name, prop_val, val_cnt,
742 status = dladm_set_flowprop(handle, flow, NULL, NULL, 0,
777 s = dladm_set_flowprop(handle, flow, aip->ai_name, val, count,
812 s = dladm_get_flowprop(handle, flow,
849 dladm_close(handle);
912 /* close dladm handle if it was opened */
913 if (handle != NULL)
914 dladm_close(handle);
954 /* close dladm handle if it was opened */
955 if (handle != NULL)
956 dladm_close(handle);
974 status = dladm_get_flowprop(handle, flowname, type, propname, propvals,
1104 show_flowprop(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
1165 if (dladm_name2info(handle, optarg, &state.fs_linkid,
1198 (void) show_flowprop_onelink(handle, state.fs_linkid, &state);
1202 (void) dladm_walk_datalink_id(show_flowprop_onelink, handle,
1225 if ((status = dladm_flow_info(handle, flow, &attr)) !=