summaryrefslogtreecommitdiff
path: root/inc/cnss_prealloc.h
diff options
context:
space:
mode:
authorVictor Hsu <hsuvictor@google.com>2021-10-09 11:34:32 +0800
committerVictor Hsu <hsuvictor@google.com>2021-12-06 10:04:04 +0800
commitb8963e75368763f8753b912541ee6bb58c2473d3 (patch)
tree8aa6a3898dd792d4295615f6e0e7e03a980b2f07 /inc/cnss_prealloc.h
parent54ea3e6dbee3ae9ea18df6f80ffd5efe2af63685 (diff)
downloadcnss2-b8963e75368763f8753b912541ee6bb58c2473d3.tar.gz
wcn6740: Add CNSS platform driver modules
Bug: 202572584 Change-Id: I6e2e81606910c6fe9c179492be0b14f1819a119f
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_ */