Go to the documentation of this file.
15 #ifndef _LINUX_MEMORY_H_
16 #define _LINUX_MEMORY_H_
19 #include <linux/compiler.h>
22 #define MIN_MEMORY_BLOCK_SIZE (1UL << SECTION_SIZE_BITS)
46 #define MEM_ONLINE (1<<0)
47 #define MEM_GOING_OFFLINE (1<<1)
48 #define MEM_OFFLINE (1<<2)
49 #define MEM_GOING_ONLINE (1<<3)
50 #define MEM_CANCEL_ONLINE (1<<4)
51 #define MEM_CANCEL_OFFLINE (1<<5)
64 #define MEM_ISOLATE_COUNT (1<<0)
79 #define SLAB_CALLBACK_PRI 1
80 #define IPC_CALLBACK_PRI 10
82 #ifndef CONFIG_MEMORY_HOTPLUG_SPARSE
123 #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)
124 enum mem_add_context {
BOOT, HOTPLUG };
127 #ifdef CONFIG_MEMORY_HOTPLUG
128 #define hotplug_memory_notifier(fn, pri) { \
129 static __meminitdata struct notifier_block fn##_mem_nb =\
130 { .notifier_call = fn, .priority = pri }; \
131 register_memory_notifier(&fn##_mem_nb); \
134 #define hotplug_memory_notifier(fn, pri) do { } while (0)