Skip to contentSkip to conversation

Export node_online_map and node_possible_map

PATCH New Dean Nelson 1 participant 1 message Mar 23, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Export node_online_map and node_possible_map

Export node_online_map and node_possible_map so that kernel modules can use the nodemask macros, like, for_each_node() and for_each_online_node().

Index: linux-2.6/mm/page_alloc.c
=================================--- linux-2.6.orig/mm/page_alloc.c 2005-03-17 08:55:23.253781240 -0600
+++ linux-2.6/mm/page_alloc.c 2005-03-17 09:23:51.648987691 -0600
@@ -43,7 +43,9 @@
* initializer cleaner
*/
nodemask_t node_online_map = { { [0] = 1UL } };
+EXPORT_SYMBOL(node_online_map);
nodemask_t node_possible_map = NODE_MASK_ALL;
+EXPORT_SYMBOL(node_possible_map);
struct pglist_data *pgdat_list;
unsigned long totalram_pages;
unsigned long totalhigh_pages;