libnl: /data/src/libnl3/lib/route/link/ifb.c Source File

libnl 3.7.0

ifb.c
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2014 Cong Wang <xiyou.wangcong@gmail.com>
4 */
5
6 /**
7 * @ingroup link
8 * @defgroup ifb Intermediate Functional Block
9 *
10 * @details
11 * \b Link Type Name: "ifb"
12 *
13 * @{
14 */
15
16 #include <netlink-private/netlink.h>
17 #include <netlink/netlink.h>
18 #include <netlink-private/route/link/api.h>
19
20 static struct rtnl_link_info_ops ifb_info_ops = {
21 .io_name = "ifb",
22 };
23
24 static void __init ifb_init(void)
25 {
26 rtnl_link_register_info(&ifb_info_ops);
27 }
28
29 static void __exit ifb_exit(void)
30 {
31 rtnl_link_unregister_info(&ifb_info_ops);
32 }
33
34 /** @} */
rtnl_link_register_info
int rtnl_link_register_info(struct rtnl_link_info_ops *ops)
Register operations for a link info type.
Definition: api.c:124
rtnl_link_unregister_info
int rtnl_link_unregister_info(struct rtnl_link_info_ops *ops)
Unregister operations for a link info type.
Definition: api.c:159