Files
android_kernel_xiaomi_sm8450/include/linux/show_mem_notifier.h
Laura Abbott 4a24d23163 mm: Add notifier framework for showing memory
There are many drivers in the kernel which can hold on
to lots of memory. It can be useful to dump out all those
drivers at key points in the kernel. Introduce a notifier
framework for dumping this information. When the notifiers
are called, drivers can dump out the state of any memory
they may be using.

Change-Id: Ifb2946964bf5d072552dd56d8d6dfdd794af6d84
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[swatsrid@codeaurora.org: Fix merge conflicts and errors]
Signed-off-by: Swathi Sridhar <swatsrid@codeaurora.org>
[isaacm@codeaurora.org: Fix merge conflicts/licensing/scope issues]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-10-10 12:37:35 -07:00

13 lines
305 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2014, The Linux Foundation. All rights reserved.
*/
#include <linux/notifier.h>
int show_mem_notifier_register(struct notifier_block *nb);
int show_mem_notifier_unregister(struct notifier_block *nb);
void show_mem_call_notifiers(void);