Merge tag 'rproc-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc...
[linux.git] / net / batman-adv / netlink.h
blob2097c2ae98f16a5119a0c4255e48a3cf4d20cca7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) B.A.T.M.A.N. contributors:
4 * Matthias Schiffer
5 */
7 #ifndef _NET_BATMAN_ADV_NETLINK_H_
8 #define _NET_BATMAN_ADV_NETLINK_H_
10 #include "main.h"
12 #include <linux/netlink.h>
13 #include <linux/types.h>
14 #include <net/genetlink.h>
16 void batadv_netlink_register(void);
17 void batadv_netlink_unregister(void);
18 struct net_device *batadv_netlink_get_softif(struct netlink_callback *cb);
19 struct batadv_hard_iface *
20 batadv_netlink_get_hardif(struct batadv_priv *bat_priv,
21 struct netlink_callback *cb);
23 int batadv_netlink_tpmeter_notify(struct batadv_priv *bat_priv, const u8 *dst,
24 u8 result, u32 test_time, u64 total_bytes,
25 u32 cookie);
27 extern struct genl_family batadv_netlink_family;
29 #endif /* _NET_BATMAN_ADV_NETLINK_H_ */