Skip to content
Snippets Groups Projects
Commit 3c82c30c authored by Hannes Hering's avatar Hannes Hering Committed by Jeff Garzik
Browse files

memory: Introduce exports for memory notifiers


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

Signed-off-by: default avatarHannes Hering <hering2@de.ibm.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent ad5da7ab
No related branches found
No related tags found
No related merge requests found
...@@ -53,11 +53,13 @@ int register_memory_notifier(struct notifier_block *nb) ...@@ -53,11 +53,13 @@ int register_memory_notifier(struct notifier_block *nb)
{ {
return blocking_notifier_chain_register(&memory_chain, nb); return blocking_notifier_chain_register(&memory_chain, nb);
} }
EXPORT_SYMBOL(register_memory_notifier);
void unregister_memory_notifier(struct notifier_block *nb) void unregister_memory_notifier(struct notifier_block *nb)
{ {
blocking_notifier_chain_unregister(&memory_chain, nb); blocking_notifier_chain_unregister(&memory_chain, nb);
} }
EXPORT_SYMBOL(unregister_memory_notifier);
/* /*
* register_memory - Setup a sysfs device for a memory block * register_memory - Setup a sysfs device for a memory block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment