mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
memory: Introduce exports for memory notifiers
This patch introduces two exports to allow modules to use memory notifiers. Signed-off-by: Hannes Hering <hering2@de.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
ad5da7ab7b
commit
3c82c30cd5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue