2 * linux/arch/alpha/kernel/gct.c
5 #include <linux/kernel.h>
6 #include <linux/types.h>
7 #include <linux/errno.h>
13 gct6_find_nodes(gct6_node
*node
, gct6_search_struct
*search
)
15 gct6_search_struct
*wanted
;
18 /* First check the magic number. */
19 if (node
->magic
!= GCT_NODE_MAGIC
) {
20 printk(KERN_ERR
"GCT Node MAGIC incorrect - GCT invalid\n");
24 /* Check against the search struct. */
26 wanted
&& (wanted
->type
| wanted
->subtype
);
28 if (node
->type
!= wanted
->type
)
30 if (node
->subtype
!= wanted
->subtype
)
33 /* Found it -- call out. */
35 wanted
->callout(node
);
38 /* Now walk the tree, siblings first. */
40 status
|= gct6_find_nodes(GCT_NODE_PTR(node
->next
), search
);
42 /* Then the children. */
44 status
|= gct6_find_nodes(GCT_NODE_PTR(node
->child
), search
);