#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <net/rtnetlink.h>
#include <linux/if_team.h>
struct ab_priv { … };
static struct ab_priv *ab_priv(struct team *team)
{ … }
static rx_handler_result_t ab_receive(struct team *team, struct team_port *port,
struct sk_buff *skb) { … }
static bool ab_transmit(struct team *team, struct sk_buff *skb)
{ … }
static void ab_port_leave(struct team *team, struct team_port *port)
{ … }
static void ab_active_port_init(struct team *team,
struct team_option_inst_info *info)
{ … }
static void ab_active_port_get(struct team *team, struct team_gsetter_ctx *ctx)
{ … }
static int ab_active_port_set(struct team *team, struct team_gsetter_ctx *ctx)
{ … }
static const struct team_option ab_options[] = …;
static int ab_init(struct team *team)
{ … }
static void ab_exit(struct team *team)
{ … }
static const struct team_mode_ops ab_mode_ops = …;
static const struct team_mode ab_mode = …;
static int __init ab_init_module(void)
{ … }
static void __exit ab_cleanup_module(void)
{ … }
module_init(…) …;
module_exit(ab_cleanup_module);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_ALIAS_TEAM_MODE(…) …;