Skip to contentSkip to conversation

[2.6.26] memory: Introduce exports for memory notifiers

PATCH In review Hannes Hering 2 participants 2 messages May 7, 2008 – May 13, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 [2.6.26] memory: Introduce exports for memory notifiers

This patch introduces two exports to allow modules to use memory notifiers.

---

drivers/base/memory.c +2 -0
index 8ce6de5..937e825 100644
@@ -53,11 +53,13 @@ int register_memory_notifier(struct notifier_block *nb)
 {
         return blocking_notifier_chain_register(&memory_chain, nb);
 }
+EXPORT_SYMBOL(register_memory_notifier);
 
 void unregister_memory_notifier(struct notifier_block *nb)
 {
         blocking_notifier_chain_unregister(&memory_chain, nb);
 }
+EXPORT_SYMBOL(unregister_memory_notifier);
 
 /*
  * register_memory - Setup a sysfs device for a memory block
Signature · 1 line
1.5.5.1
#1 lore raw
Quoted 10 lines · Hannes Hering

This patch introduces two exports to allow modules to use memory notifiers.

---

drivers/base/memory.c +0 -0
index 8ce6de5..937e825 100644

drivers/base/memory.c int register_memory_notifier(struct notifier_block *nb) · line 62

Quoted 10 lines
drivers/base/memory.c +2 -0
@@ -53,11 +53,13 @@ int register_memory_notifier(struct notifier_block *nb)
 {
         return blocking_notifier_chain_register(&memory_chain, nb);
 }
+EXPORT_SYMBOL(register_memory_notifier);
 
 void unregister_memory_notifier(struct notifier_block *nb)
 {
         blocking_notifier_chain_unregister(&memory_chain, nb);
 }
+EXPORT_SYMBOL(unregister_memory_notifier);

applied 1-3