android_kernel_xiaomi_sm7250/include/net/cnss_prealloc.h
Yuanyuan Liu 59b57424d5 net: cnss_prealloc: Add snapshot of cnss_prealloc driver
This is a snapshot of the CNSS2 driver and associated files as of
msm-4.14 commit fbe4101b0189
("cnss_prealloc: Update prealloc memory table").

Checkpatch issues are also fixed on top of this commit.

CRs-Fixed: 2375545
Change-Id: Ie57101548bb016c92405fbf34f0e7bbcd938bc4a
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-01-15 15:37:49 -08:00

15 lines
442 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2015-2016,2019 The Linux Foundation. All rights reserved. */
#ifndef _NET_CNSS_PREALLOC_H_
#define _NET_CNSS_PREALLOC_H_
#define WCNSS_PRE_ALLOC_GET_THRESHOLD (4*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);
#endif /* _NET_CNSS__PREALLOC_H_ */