Skip to contentSkip to conversation

drivers/base: export (un)register_memory_notifier

PATCH Superseded Jan-Bernd Themann 2 participants 2 messages Feb 1, 2008

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

PATCH 1/1 drivers/base: export (un)register_memory_notifier

Drivers like eHEA need memory notifiers in order to update their internal DMA memory map when memory is added to or removed from the system.

---
Comment: eHEA patches that exploit these functions will follow

 drivers/base/memory.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/base/memory.c +2 -0
index 7ae413f..1e1bd4c 100644
@@ -52,11 +52,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.2
Acked-by on v1 1/1
#1 lore raw
Quoted 21 lines · Jan-Bernd Themann

Drivers like eHEA need memory notifiers in order to update their internal DMA memory map when memory is added to or removed from the system.

---
Comment: eHEA patches that exploit these functions will follow

 drivers/base/memory.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/base/memory.c +0 -0
index 7ae413f..1e1bd4c 100644
@@ -52,11 +52,13 @@ int register_memory_notifier(struct notifier_block *nb)
 {
         return blocking_notifier_chain_register(&memory_chain, nb);
 }

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

Quoted 10 lines
drivers/base/memory.c +2 -0
+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

Is there a reason for not making them EXPORT_SYMBOL_GPL() ? Otherwise, looks good to me.

I have been planning to send this as part of my next update with ppc64 arch-specific remove support and generic __remove_pages() support. If this is blocking your work, lets get this in.

Thanks,
Badari