summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYue Ma <yuem@codeaurora.org>2016-01-26 17:46:14 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:16:40 -0700
commit0c00aa87c1b8f3e28e9839b4970d078d47f1a469 (patch)
tree25854ce848632bbf990df684ddecceb7c333db7b /include
parentffe5134f23b5ba5d7ee8d24fa4b6c95104677b5f (diff)
net: cnss_prealloc: Add snapshot of cnss prealloc driver
This is a snapshot of the cnss prealloc driver and associated files as of msm-3.18 commit: e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1 (Promotion of kernel.lnx. 3.18-151201.) Signed-off-by: Yue Ma <yuem@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/cnss_prealloc.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/net/cnss_prealloc.h b/include/net/cnss_prealloc.h
new file mode 100644
index 000000000000..734b4b69ecbb
--- /dev/null
+++ b/include/net/cnss_prealloc.h
@@ -0,0 +1,23 @@
+/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _NET_CNSS_PREALLOC_H_
+#define _NET_CNSS_PREALLOC_H_
+
+#define WCNSS_PRE_ALLOC_GET_THRESHOLD (4*1024)
+
+extern void *wcnss_prealloc_get(unsigned int 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_ */