cnss_prealloc.h 858 B

1234567891011121314151617181920212223
  1. /* Copyright (c) 2015-2016, 2018 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. #ifndef _NET_CNSS_PREALLOC_H_
  13. #define _NET_CNSS_PREALLOC_H_
  14. #define WCNSS_PRE_ALLOC_GET_THRESHOLD (4*1024)
  15. extern void *wcnss_prealloc_get(size_t size);
  16. extern int wcnss_prealloc_put(void *ptr);
  17. extern int wcnss_pre_alloc_reset(void);
  18. void wcnss_prealloc_check_memory_leak(void);
  19. #endif /* _NET_CNSS__PREALLOC_H_ */