blob: 36de97b9a4ea87355d3aae59ebeeb9c41e05cbea [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
18extern void *wcnss_prealloc_get(unsigned int size);
19extern 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_ */