xref: /wlan-driver/platform/inc/cnss_prealloc.h (revision 5113495b16420b49004c444715d2daae2066e7dc) !
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2015-2016,2019 The Linux Foundation. All rights reserved.
4  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
5  */
6 
7 #ifndef _NET_CNSS_PREALLOC_H_
8 #define _NET_CNSS_PREALLOC_H_
9 
10 #include <linux/types.h>
11 
12 #define WCNSS_PRE_ALLOC_GET_THRESHOLD (8*1024)
13 
14 extern void *wcnss_prealloc_get(size_t size);
15 extern int wcnss_prealloc_put(void *ptr);
16 extern int wcnss_pre_alloc_reset(void);
17 void wcnss_prealloc_check_memory_leak(void);
18 extern void cnss_initialize_prealloc_pool(unsigned long device_id);
19 extern void cnss_deinitialize_prealloc_pool(void);
20 
21 #endif /* _NET_CNSS__PREALLOC_H_ */
22