cnss_prealloc.h 667 B

123456789101112131415161718192021
  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. #ifndef _NET_CNSS_PREALLOC_H_
  7. #define _NET_CNSS_PREALLOC_H_
  8. #include <linux/types.h>
  9. #define WCNSS_PRE_ALLOC_GET_THRESHOLD (8*1024)
  10. extern void *wcnss_prealloc_get(size_t size);
  11. extern int wcnss_prealloc_put(void *ptr);
  12. extern int wcnss_pre_alloc_reset(void);
  13. void wcnss_prealloc_check_memory_leak(void);
  14. extern void cnss_initialize_prealloc_pool(unsigned long device_id);
  15. extern void cnss_deinitialize_prealloc_pool(void);
  16. #endif /* _NET_CNSS__PREALLOC_H_ */