Lines Matching defs:link

68  * The following macros take a link name without the trailing PPA as input.
69 * Opening a /dev/net node with one of these names causes a tunnel link to be
251 * Create and associate <link name, linkid> mapping for network devices
378 * Request the datalink management daemon to create a link with the attributes
380 * the new link; otherwise, an errno is returned.
416 * Request the datalink management daemon to destroy the specified link.
435 * for a physical link. Upon success, get its linkid.
444 * 1. A link with devname already exists, but the media type does not match.
445 * In this case, mediap will bee set to the media type of the existing link.
446 * 2. A link with devname already exists, but its link name does not match
447 * the device name, although this link does not support vanity naming.
478 * Request the datalink management daemon to get the information for a link.
482 * Note that the link argument is expected to be MAXLINKNAMELEN bytes.
485 dls_mgmt_get_linkinfo(datalink_id_t linkid, char *link,
504 if (link != NULL)
505 (void) strlcpy(link, retval.lr_link, MAXLINKNAMELEN);
516 * Request the datalink management daemon to get the linkid for a link.
521 dls_mgmt_get_linkid(const char *link, datalink_id_t *linkid)
528 (void) strlcpy(getlinkid.ld_link, link, MAXLINKNAMELEN);
582 * Note that this function can only get devp successfully for non-VLAN link.
603 * all properties associated with the link.
691 * "link" kstats related functions.
695 * Query the "link" kstats.
710 * Check the link is being renamed or if the link is going away
711 * before incrementing dd_tref which in turn prevents the link
740 * Create the "link" kstats.
747 if (dls_stat_create("link", 0, ddp->dd_linkname, zoneid,
761 * Destroy the "link" kstats.
780 * The link has been renamed. Destroy the old non-legacy kstats ("link kstats")
790 /* We can't rename a link while it's assigned to a non-global zone. */
796 * Associate a linkid with a given link (identified by macname)
811 * Don't allow callers to set a link name with a linkid that already
834 * This might be a physical link that has already
898 * Disassociate a linkid with a given link (identified by macname)
985 * Hold this link to prevent it being detached in case of a
986 * physical link.
1066 * Hold this link to prevent it being detached in case of a
1067 * GLDv3 physical link.
1114 dls_devnet_hold_by_name(const char *link, dls_devnet_t **ddpp)
1124 if ((err = dls_mgmt_get_linkid(link, &linkid)) == 0)
1128 * If we failed to get the link's linkid because the dlmgmtd daemon
1138 if (ddi_parse(link, drv, &ppa) != DDI_SUCCESS)
1142 if ((err = i_dls_devnet_create_iptun(link, drv, &linkid)) != 0)
1146 * resulted in a link being created.
1164 * If this link:
1182 if ((err = dls_mgmt_get_linkid(link, &linkid)) != 0 ||
1232 * Get the link's physical dev_t. It this is a VLAN, get the dev_t of the
1233 * link this VLAN is created on.
1252 * 1. Request to rename a valid link (id1) to an non-existent link name
1256 * In this case, the link's kstats need to be updated using the given name.
1258 * 2. Request to rename a valid link (id1) to the name of a REMOVED
1259 * physical link (id2). In this case, check that id1 and its associated
1260 * mac is not held by any application, and update the link's linkid to id2.
1262 * This case does not change the <link name, linkid> mapping, so the link's
1266 dls_devnet_rename(datalink_id_t id1, datalink_id_t id2, const char *link)
1278 * In the second case, id2 must be a REMOVED physical link.
1288 * Hold id1 to prevent it from being detached (if a physical link).
1312 * Return EBUSY if any applications have this link open, if any thread
1313 * is currently accessing the link kstats, or if the link is on-loan
1330 (void) strlcpy(ddp->dd_linkname, link,
1336 (void) mac_rename_primary(mh, link);
1343 * user. This must be a physical link so ddh must not be NULL.
1368 * Update the link's linkid.
1401 * Change the name of the kstat based on the new link name.
1441 * When changing the zoneid of an existing link, we need to tell
1484 * Acquire an additional reference to the link if it is being assigned
1500 * Release the additional reference if the link is returning to the
1528 * Is linkid visible from zoneid? A link is visible if it was created in the
1548 dls_devnet_open(const char *link, dls_dl_handle_t *dhp, dev_t *devp)
1556 if ((err = dls_devnet_hold_by_name(link, &ddp)) != 0)
1562 * Opening a link that does not belong to the current non-global zone
1642 * we need to use the linkid to get the user name for the link
1687 * be called to re-set the link when destroy fails. The
1690 * which initially created the link.
1699 * Implicitly create an IP tunnel link.