[2.6.26] memory: Introduce exports for memory notifiers
Subsystems (4)
PATCH 1/3 [2.6.26] memory: Introduce exports for memory notifiers
This patch introduces two exports to allow modules to use memory notifiers.
Signed-off-by Hannes Hering <[email protected]>
---
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);/* * register_memory - Setup a sysfs device for a memory block
Signature · 1 line
1.5.5.1
Quoted 10 lines · Hannes Hering
This patch introduces two exports to allow modules to use memory notifiers.
Signed-off-by Hannes Hering <[email protected]>---
drivers/base/memory.c +0
-0
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