Yuanyuan Liu | a73d1c6 | 2016-10-12 17:35:03 -0700 | [diff] [blame] | 1 | /* 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 | |
| 18 | extern void *wcnss_prealloc_get(unsigned int size); |
| 19 | extern int wcnss_prealloc_put(void *ptr); |
| 20 | extern int wcnss_pre_alloc_reset(void); |
| 21 | void wcnss_prealloc_check_memory_leak(void); |
| 22 | |
| 23 | #endif /* _NET_CNSS__PREALLOC_H_ */ |