blob: 5d0a612f41dea036df0fc2249de4f44f8b18e3d4 [file] [log] [blame]
Yuanyuan Liua73d1c62016-10-12 17:35:03 -07001/* Copyright (c) 2015-2016 The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef _NET_CNSS_PREALLOC_H_
14#define _NET_CNSS_PREALLOC_H_
15
16#define WCNSS_PRE_ALLOC_GET_THRESHOLD (4*1024)
17
Anurag Chouhan5184f4a2018-09-11 14:50:56 +053018extern void *wcnss_prealloc_get(size_t size);
Yuanyuan Liua73d1c62016-10-12 17:35:03 -070019extern int wcnss_prealloc_put(void *ptr);
20extern int wcnss_pre_alloc_reset(void);
21void wcnss_prealloc_check_memory_leak(void);
22
23#endif /* _NET_CNSS__PREALLOC_H_ */