Lines Matching defs:linkid
109 * Allocate a new linkid with the given name for the given zone.
110 * Return the new linkid.
149 * Allocate a new linkid with the given name. Return the new linkid.
164 dladm_destroy_datalink_id(dladm_handle_t handle, datalink_id_t linkid,
176 destroyid.ld_linkid = linkid;
187 dladm_remap_datalink_id(dladm_handle_t handle, datalink_id_t linkid,
197 remapid.ld_linkid = linkid;
208 dladm_up_datalink_id(dladm_handle_t handle, datalink_id_t linkid)
215 upid.ld_linkid = linkid;
224 dladm_create_conf(dladm_handle_t handle, const char *link, datalink_id_t linkid,
238 createconf.ld_linkid = linkid;
460 datalink_id_t linkid)
472 flow_conf.ld_linkid = linkid;
484 i_dladm_phys_status(dladm_handle_t handle, datalink_id_t linkid,
492 status = dladm_phys_info(handle, linkid, &dpa, DLADM_OPT_ACTIVE);
502 if ((status = dladm_destroy_datalink_id(handle, linkid,
506 (void) dladm_set_linkprop(handle, linkid, NULL, NULL, 0,
532 i_dladm_init_linkinfo(dladm_datalink_info_t *di, datalink_id_t linkid,
536 di->di_linkid = linkid;
548 * call fn on the linkid and arg. Caller must supply one of the
554 dladm_walk_datalink_common(datalink_id_t linkid, int (*fn)(dladm_handle_t,
573 if (linkid != DATALINK_ALL_LINKID) {
575 di.di_linkid = linkid;
595 getnext.ld_linkid = linkid;
606 linkid = retval.lr_linkid;
614 if (i_dladm_phys_status(handle, linkid,
628 if (fn(handle, linkid, argp) == DLADM_WALK_TERMINATE)
633 i_dladm_init_linkinfo(&di, linkid, retval.lr_link,
680 } while (linkid != DATALINK_INVALID_LINKID);
692 dladm_walk_datalinks(dladm_handle_t handle, datalink_id_t linkid,
697 return (dladm_walk_datalink_common(linkid, NULL, fn, handle, argp,
821 * call fn on the linkid and arg.
837 dladm_open_conf(dladm_handle_t handle, datalink_id_t linkid,
845 if (linkid == DATALINK_INVALID_LINKID || confp == NULL)
849 openconf.ld_linkid = linkid;
867 dladm_getsnap_conf(dladm_handle_t handle, datalink_id_t linkid,
877 if (linkid == DATALINK_INVALID_LINKID || confp == NULL)
881 snapshot.ld_linkid = linkid;
982 dladm_write_conf(dladm_handle_t handle, dladm_conf_t conf, datalink_id_t linkid)
1010 if (dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1164 datalink_id_t linkid;
1176 linkid = retval.lr_linkid;
1183 status = i_dladm_phys_status(handle, linkid, &retval.lr_flags);
1189 *linkidp = linkid;
1208 dladm_datalink_id2linkinfo(dladm_handle_t handle, datalink_id_t linkid,
1217 if ((linkid == DATALINK_INVALID_LINKID) || (link != NULL && len == 0))
1221 getname.ld_linkid = linkid;
1237 status = i_dladm_phys_status(handle, linkid, &retval.lr_flags);
1268 dladm_datalink_id2info(dladm_handle_t handle, datalink_id_t linkid,
1272 return (dladm_datalink_id2linkinfo(handle, linkid, flagp, classp,
1423 dladm_remove_conf(dladm_handle_t handle, datalink_id_t linkid)
1435 removeconf.ld_linkid = linkid;
1445 if (dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,