14 #ifndef _LINUX_NODE_H_
15 #define _LINUX_NODE_H_
17 #include <linux/device.h>
24 #if defined(CONFIG_MEMORY_HOTPLUG_SPARSE) && defined(CONFIG_HUGETLBFS)
40 extern int register_mem_sect_under_node(
struct memory_block *mem_blk,
42 extern int unregister_mem_sect_under_nodes(
struct memory_block *mem_blk,
43 unsigned long phys_index);
45 #ifdef CONFIG_HUGETLBFS
66 static inline int register_mem_sect_under_node(
struct memory_block *mem_blk,
71 static inline int unregister_mem_sect_under_nodes(
struct memory_block *mem_blk,
72 unsigned long phys_index)
83 #define to_node(device) container_of(device, struct node, dev)