
Update prealloc mem pool based on device type. Change-Id: Ic7fc2145a0039aa55643672b8e125857c096a3ee CRs-Fixed: 3459351
22 lines
667 B
C
22 lines
667 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2015-2016,2019 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _NET_CNSS_PREALLOC_H_
|
|
#define _NET_CNSS_PREALLOC_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define WCNSS_PRE_ALLOC_GET_THRESHOLD (8*1024)
|
|
|
|
extern void *wcnss_prealloc_get(size_t size);
|
|
extern int wcnss_prealloc_put(void *ptr);
|
|
extern int wcnss_pre_alloc_reset(void);
|
|
void wcnss_prealloc_check_memory_leak(void);
|
|
extern void cnss_initialize_prealloc_pool(unsigned long device_id);
|
|
extern void cnss_deinitialize_prealloc_pool(void);
|
|
|
|
#endif /* _NET_CNSS__PREALLOC_H_ */
|