cnss_prealloc.h 468 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2015-2016,2019 The Linux Foundation. All rights reserved. */
  3. #ifndef _NET_CNSS_PREALLOC_H_
  4. #define _NET_CNSS_PREALLOC_H_
  5. #include <linux/types.h>
  6. #define WCNSS_PRE_ALLOC_GET_THRESHOLD (4*1024)
  7. extern void *wcnss_prealloc_get(size_t size);
  8. extern int wcnss_prealloc_put(void *ptr);
  9. extern int wcnss_pre_alloc_reset(void);
  10. void wcnss_prealloc_check_memory_leak(void);
  11. #endif /* _NET_CNSS__PREALLOC_H_ */