aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/node.h')
-rw-r--r--include/linux/node.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/node.h b/include/linux/node.h
index 681a697b9a86..dae1521e1f05 100644
--- a/include/linux/node.h
+++ b/include/linux/node.h
@@ -28,6 +28,7 @@ struct node {
28 28
29struct memory_block; 29struct memory_block;
30extern struct node node_devices[]; 30extern struct node node_devices[];
31typedef void (*node_registration_func_t)(struct node *);
31 32
32extern int register_node(struct node *, int, struct node *); 33extern int register_node(struct node *, int, struct node *);
33extern void unregister_node(struct node *node); 34extern void unregister_node(struct node *node);
@@ -39,6 +40,11 @@ extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid);
39extern int register_mem_sect_under_node(struct memory_block *mem_blk, 40extern int register_mem_sect_under_node(struct memory_block *mem_blk,
40 int nid); 41 int nid);
41extern int unregister_mem_sect_under_nodes(struct memory_block *mem_blk); 42extern int unregister_mem_sect_under_nodes(struct memory_block *mem_blk);
43
44#ifdef CONFIG_HUGETLBFS
45extern void register_hugetlbfs_with_node(node_registration_func_t doregister,
46 node_registration_func_t unregister);
47#endif
42#else 48#else
43static inline int register_one_node(int nid) 49static inline int register_one_node(int nid)
44{ 50{
@@ -65,6 +71,11 @@ static inline int unregister_mem_sect_under_nodes(struct memory_block *mem_blk)
65{ 71{
66 return 0; 72 return 0;
67} 73}
74
75static inline void register_hugetlbfs_with_node(node_registration_func_t reg,
76 node_registration_func_t unreg)
77{
78}
68#endif 79#endif
69 80
70#define to_node(sys_device) container_of(sys_device, struct node, sysdev) 81#define to_node(sys_device) container_of(sys_device, struct node, sysdev)