Lines Matching defs:node

110 	/* Store a pointer to the base path in each root node */
190 /* Allocate new node for current device */
245 hp_node_t node, port_node;
284 /* Create a new port node */
285 if ((node = new_hotplug_node(parent, hp)) == NULL) {
290 /* Add port node to connection list */
291 node_list_add(&connections, node);
293 /* Add branch of child devices to port node */
295 if ((rv = copy_devices(node, child_dev, child_flags,
296 &node->hp_child)) != 0)
317 /* Create a new connector node */
318 if ((node = new_hotplug_node(parent, hp)) == NULL) {
323 /* Add connector node to connection list */
324 node_list_add(&connections, node);
335 /* Add new port node to port list */
336 if ((port_node = new_hotplug_node(node,
350 node->hp_child = ports.head;
395 search_cb(di_node_t node, void *arg)
400 (void) di_node_private_set(node, (void *)(uintptr_t)0);
402 if (di_hp_next(node, DI_HP_NIL) == DI_HP_NIL)
405 for (parent = node; parent != DI_NODE_NIL;
418 * Check if a device node was marked by an initial search pass.
437 * Utility function to append one node to a list of hotplug nodes.
440 node_list_add(hp_node_list_t *listp, hp_node_t node)
443 listp->prev->hp_sibling = node;
445 listp->head = node;
447 listp->prev = node;
453 * Build a new hotplug node based on a specified devinfo node.
458 hp_node_t node;
462 node = (hp_node_t)calloc(1, sizeof (struct hp_node));
464 if (node != NULL) {
465 node->hp_parent = parent;
466 node->hp_type = HP_NODE_DEVICE;
473 log_err("Path too long for device node.\n");
474 free(node);
477 node->hp_name = strdup(name);
479 node->hp_name = strdup(node_name);
482 return (node);
488 * Build a new hotplug node based on a specified devinfo hotplug node.
493 hp_node_t node;
496 node = (hp_node_t)calloc(1, sizeof (struct hp_node));
498 if (node != NULL) {
499 node->hp_parent = parent;
500 node->hp_state = di_hp_state(hp);
501 node->hp_last_change = di_hp_last_change(hp);
503 node->hp_name = strdup(s);
505 node->hp_description = strdup(s);
507 node->hp_type = HP_NODE_PORT;
509 node->hp_type = HP_NODE_CONNECTOR;
512 return (node);