1 /*
2 * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16 #ifndef WLAN_HDD_SYSFS_PKT_LOG_H
17 #define WLAN_HDD_SYSFS_PKT_LOG_H
18
19 #if defined(WLAN_SYSFS) && !defined(REMOVE_PKT_LOG)
20
21 /**
22 * hdd_sysfs_pktlog_create(): Initialize pktlog specific sysfs file
23 * @driver_kobject: Driver Kobject
24 *
25 * Function to initialize pktlog specific mode syfs files.
26 *
27 * Return: NONE
28 */
29 void hdd_sysfs_pktlog_create(struct kobject *driver_kobject);
30
31 /**
32 * hdd_sysfs_pktlog_destroy(): Remove pktlog sysfs file
33 * @driver_kobject: Driver Kobject
34 *
35 * Function to remove pktlog specific mode syfs files.
36 *
37 * Return: NONE
38 */
39 void hdd_sysfs_pktlog_destroy(struct kobject *driver_kobject);
40 #else
41 static inline
hdd_sysfs_pktlog_create(struct kobject * driver_kobject)42 void hdd_sysfs_pktlog_create(struct kobject *driver_kobject)
43 {
44 }
45
46 static inline
hdd_sysfs_pktlog_destroy(struct kobject * driver_kobject)47 void hdd_sysfs_pktlog_destroy(struct kobject *driver_kobject)
48 {
49 }
50 #endif
51 #endif
52