11146ee4aSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 261e12104SWon Kang /* 361e12104SWon Kang * Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved. 461e12104SWon Kang * 561e12104SWon Kang * This software is licensed under the terms of the GNU General Public 661e12104SWon Kang * License version 2, as published by the Free Software Foundation, and 761e12104SWon Kang * may be copied, distributed, and modified under those terms. 861e12104SWon Kang * 961e12104SWon Kang * This program is distributed in the hope that it will be useful, 1061e12104SWon Kang * but WITHOUT ANY WARRANTY; without even the implied warranty of 1161e12104SWon Kang * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1261e12104SWon Kang * GNU General Public License for more details. 1361e12104SWon Kang */ 1461e12104SWon Kang 1561e12104SWon Kang #ifndef _NETLINK_K_H 1661e12104SWon Kang #define _NETLINK_K_H 1761e12104SWon Kang 1861e12104SWon Kang #include <linux/netdevice.h> 1961e12104SWon Kang #include <net/sock.h> 2061e12104SWon Kang 2161e12104SWon Kang struct sock *netlink_init(int unit, 2295703a78SDawid Kurek void (*cb)(struct net_device *dev, 2395703a78SDawid Kurek u16 type, void *msg, int len)); 2461e12104SWon Kang int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len); 2561e12104SWon Kang 2661e12104SWon Kang #endif /* _NETLINK_K_H_ */ 27