summaryrefslogtreecommitdiff
path: root/inc/cnss_prealloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cnss_prealloc.h')
-rw-r--r--inc/cnss_prealloc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/cnss_prealloc.h b/inc/cnss_prealloc.h
new file mode 100644
index 0000000..ee074f5
--- /dev/null
+++ b/inc/cnss_prealloc.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* Copyright (c) 2015-2016,2019 The Linux Foundation. All rights reserved. */
+
+#ifndef _NET_CNSS_PREALLOC_H_
+#define _NET_CNSS_PREALLOC_H_
+
+#include <linux/types.h>
+
+#define WCNSS_PRE_ALLOC_GET_THRESHOLD (4*1024)
+
+extern void *wcnss_prealloc_get(size_t size);
+extern int wcnss_prealloc_put(void *ptr);
+extern int wcnss_pre_alloc_reset(void);
+void wcnss_prealloc_check_memory_leak(void);
+
+#endif /* _NET_CNSS__PREALLOC_H_ */