Link info operations.
#include <info-api.h>
Data Fields | |
| char * | io_name |
| Name of operations, must match name on kernel side. | |
| int | io_refcnt |
| Reference count (internal, do not use). | |
| int(* | io_alloc )(struct rtnl_link *) |
| Called to assign an info type to a link. | |
| int(* | io_parse )(struct rtnl_link *, struct nlattr *, struct nlattr *) |
| Called to parse the link info attribute. | |
| int(* | io_dump [NL_DUMP_MAX+1])(struct rtnl_link *, struct nl_dump_params *, int) |
| Called when the link object is dumped. | |
| int(* | io_clone )(struct rtnl_link *, struct rtnl_link *) |
| Called when a link object is cloned. | |
| int(* | io_put_attrs )(struct nl_msg *, struct rtnl_link *) |
| Called when construction a link netlink message. | |
| void(* | io_free )(struct rtnl_link *) |
| Called to release all resources previously allocated in either io_alloc() or io_parse(). | |
| struct rtnl_link_info_ops * | io_next |
Definition at line 26 of file info-api.h.
| int(* rtnl_link_info_ops::io_alloc)(struct rtnl_link *) |
Has to allocate enough resources to hold attributes. Can use link->l_info to store a pointer.
Referenced by rtnl_link_set_info_type().
| int(* rtnl_link_info_ops::io_parse)(struct rtnl_link *, struct nlattr *, struct nlattr *) |
Must parse the attribute and assign all values to the link.
| int(* rtnl_link_info_ops::io_dump[NL_DUMP_MAX+1])(struct rtnl_link *, struct nl_dump_params *, int) |
Must dump the info type specific attributes.
| int(* rtnl_link_info_ops::io_clone)(struct rtnl_link *, struct rtnl_link *) |
Must clone all info type specific attributes.
| int(* rtnl_link_info_ops::io_put_attrs)(struct nl_msg *, struct rtnl_link *) |
Must append all info type specific attributes to the message.
| void(* rtnl_link_info_ops::io_free)(struct rtnl_link *) |
1.6.1