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