Lines Matching defs:node

75 static int i_vldc_add_port(vldc_t *vldcp, md_t *mdp, mde_cookie_t node);
96 * Specification of an MD node passed to the MDEG to filter any
98 * node. This template is copied for each vldc instance and filled
355 mde_cookie_t node;
377 node = resp->added.mdep[idx];
379 D1("i_vldc_mdeg_cb: processing added node 0x%lx\n", node);
382 if ((rv = i_vldc_add_port(vldcp, mdp, node)) != MDEG_SUCCESS) {
391 node = resp->removed.mdep[idx];
393 D1("i_vldc_mdeg_cb: processing removed node 0x%lx\n", node);
396 if (md_get_prop_val(mdp, node, "id", &portno)) {
397 cmn_err(CE_NOTE, "?i_vldc_mdeg_cb: node 0x%lx of "
398 "removed list has no 'id' property", node);
530 i_vldc_get_port_channel(md_t *mdp, mde_cookie_t node, uint64_t *ldc_id)
537 * Find the channel-endpoint node(s) (which should be under this
538 * port node) which contain the channel id(s).
546 /* allocate space for node list */
550 nchan = md_scan_dag(mdp, node, md_find_name(mdp, "channel-endpoint"),
562 /* use property from first node found */
577 i_vldc_add_port(vldc_t *vldcp, md_t *mdp, mde_cookie_t node)
591 if (md_get_prop_val(mdp, node, "id", &portno)) {
592 cmn_err(CE_NOTE, "?i_vldc_add_port: node 0x%lx of added "
593 "list has no 'id' property", node);
614 if (i_vldc_get_port_channel(mdp, node, &vport->ldc_id) == -1) {
622 if (md_get_prop_str(mdp, node, "vldc-svc-name", &sname)) {
671 * Create a minor node. The minor number is
681 "node (%u), err = %d", minor, rv);
690 * The port is now bound to a minor node and is initially in the
719 * Make sure that all new attempts to open or use the minor node
729 /* Now wait for all current users of the minor node to finish. */
740 /* remove minor node */
900 /* No minor node association to start with */