mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
fc9499e55a
* Package version: T713XXU2BQCO Change-Id: I293d9e7f2df458c512d59b7a06f8ca6add610c99
31 lines
1 KiB
C
31 lines
1 KiB
C
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef _NET_CNSS_PREALLOC_H_
|
|
#define _NET_CNSS_PREALLOC_H_
|
|
|
|
#include <linux/skbuff.h>
|
|
|
|
#define WCNSS_PRE_ALLOC_GET_THRESHOLD (4*1024)
|
|
#define WCNSS_PRE_SKB_ALLOC_GET_THRESHOLD (50*1024)
|
|
|
|
extern void *wcnss_prealloc_get(unsigned int size);
|
|
extern int wcnss_prealloc_put(void *ptr);
|
|
extern int wcnss_pre_alloc_reset(void);
|
|
|
|
void wcnss_prealloc_check_memory_leak(void);
|
|
extern struct sk_buff *wcnss_skb_prealloc_get(unsigned int size);
|
|
extern int wcnss_skb_prealloc_put(struct sk_buff *skb);
|
|
|
|
|
|
#endif /* _NET_CNSS__PREALLOC_H_ */
|