qcacmn: Add core\utils directory and files to qcacmn
As a part of UMAC convergence, move the core\utils logging to qcacmn. CRs-Fixed: 1109855 Change-Id: I499a392f74f3e52e99df4d03e4a27bce6cf5be7c
This commit is contained in:

committed by
qcabuildsw

parent
6195152790
commit
60644c29e6
60
utils/nlink/inc/wlan_nlink_srv.h
Normal file
60
utils/nlink/inc/wlan_nlink_srv.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file was originally distributed by Qualcomm Atheros, Inc.
|
||||
* under proprietary terms before Copyright ownership was assigned
|
||||
* to the Linux Foundation.
|
||||
*/
|
||||
|
||||
/******************************************************************************
|
||||
* wlan_nlink_srv.h
|
||||
*
|
||||
* wlan_nlink_srv is used to RX/TX Netlink messages from user space to kernel
|
||||
* modules and vice versa. Kernel modules must register a message handler for a
|
||||
* message type so that the wlan_nlink_srv can invoke the corresponding msg handler
|
||||
* whenever a Netlink message of a particular type has been received from an
|
||||
* application. In the opposite direction, wlan_nlink_srv provides a mechanism
|
||||
* which kernel modules can use to send Netlink messages to applications.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef WLAN_NLINK_SRV_H
|
||||
#define WLAN_NLINK_SRV_H
|
||||
|
||||
#include <linux/skbuff.h>
|
||||
#include <net/netlink.h>
|
||||
#include <wlan_nlink_common.h>
|
||||
|
||||
#define INVALID_PID -1
|
||||
#define NLINK_MAX_CALLBACKS (WLAN_NL_MSG_MAX - WLAN_NL_MSG_BASE)
|
||||
|
||||
typedef int (*nl_srv_msg_callback)(struct sk_buff *skb);
|
||||
|
||||
int nl_srv_init(void *wiphy);
|
||||
void nl_srv_exit(void);
|
||||
int nl_srv_register(tWlanNlModTypes msg_type, nl_srv_msg_callback msg_handler);
|
||||
int nl_srv_unregister(tWlanNlModTypes msg_type,
|
||||
nl_srv_msg_callback msg_handler);
|
||||
int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag);
|
||||
int nl_srv_bcast(struct sk_buff *skb);
|
||||
int nl_srv_is_initialized(void);
|
||||
#endif
|
Reference in New Issue
Block a user