Lines Matching defs:node
37 void devinfo_add_subtree(HalDevice *parent, di_node_t node, gboolean is_root);
38 HalDevice *devinfo_add_node(HalDevice *parent, di_node_t node);
63 devinfo_add_subtree(HalDevice *parent, di_node_t node, gboolean is_root)
68 HAL_INFO (("add_subtree: %s", di_node_name (node)));
70 root_node = node;
72 d = devinfo_add_node (parent, node);
75 (child_node = di_child_node (node)) != DI_NODE_NIL) {
79 node = di_sibling_node (node);
80 } while ((node != DI_NODE_NIL) &&
81 (!is_root || di_parent_node (node) == root_node));
85 devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path)
100 di_instance (node));
104 if (di_prop_lookup_strings (DDI_DEV_T_ANY, node, "model", &s) > 0) {
107 hal_device_property_set_string (d, "info.product", di_node_name (node));
112 if ((driver_name = di_driver_name (node)) != NULL) {
150 devinfo_add_node(HalDevice *parent, di_node_t node)
158 devfs_path = di_devfs_path (node);
160 (void) di_prop_lookup_strings (DDI_DEV_T_ANY, node, "device_type",
165 d = handler->add (parent, node, devfs_path, device_type);