node.h 590 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _ASM_I386_NODE_H_
  2. #define _ASM_I386_NODE_H_
  3. #include <linux/device.h>
  4. #include <linux/mmzone.h>
  5. #include <linux/node.h>
  6. #include <linux/topology.h>
  7. #include <linux/nodemask.h>
  8. struct i386_node {
  9. struct node node;
  10. };
  11. extern struct i386_node node_devices[MAX_NUMNODES];
  12. static inline int arch_register_node(int num){
  13. int p_node;
  14. struct node *parent = NULL;
  15. if (!node_online(num))
  16. return 0;
  17. p_node = parent_node(num);
  18. if (p_node != num)
  19. parent = &node_devices[p_node].node;
  20. return register_node(&node_devices[num].node, num, parent);
  21. }
  22. #endif /* _ASM_I386_NODE_H_ */