Link info operations. More...
#include <info-api.h>
Data Fields | |
char * | io_name |
Name of operations, must match name on kernel side. More... | |
int | io_refcnt |
Reference count (internal, do not use) More... | |
int(* | io_alloc )(struct rtnl_link *) |
Called to assign an info type to a link. More... | |
int(* | io_parse )(struct rtnl_link *, struct nlattr *, struct nlattr *) |
Called to parse the link info attribute. More... | |
void(* | io_dump [NL_DUMP_MAX+1])(struct rtnl_link *, struct nl_dump_params *) |
Called when the link object is dumped. More... | |
int(* | io_clone )(struct rtnl_link *, struct rtnl_link *) |
Called when a link object is cloned. More... | |
int(* | io_put_attrs )(struct nl_msg *, struct rtnl_link *) |
Called when construction a link netlink message. More... | |
void(* | io_free )(struct rtnl_link *) |
Called to release all resources previously allocated in either io_alloc() or io_parse(). More... | |
struct rtnl_link_info_ops * | io_next |
Link info operations.
Called to assign an info type to a 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().
Called when a link object is cloned.
Must clone all info type specific attributes.
void(* rtnl_link_info_ops::io_dump[NL_DUMP_MAX+1])(struct rtnl_link *, struct nl_dump_params *) |
Called when the link object is dumped.
Must dump the info type specific attributes.
Called to release all resources previously allocated in either io_alloc() or io_parse().
char* rtnl_link_info_ops::io_name |
Name of operations, must match name on kernel side.
Referenced by rtnl_link_build_change_request(), rtnl_link_get_info_type(), rtnl_link_info_ops_lookup(), rtnl_link_register_info(), and rtnl_link_unregister_info().
struct rtnl_link_info_ops* rtnl_link_info_ops::io_next |
Referenced by rtnl_link_info_ops_lookup(), rtnl_link_register_info(), and rtnl_link_unregister_info().
Called to parse the link info attribute.
Must parse the attribute and assign all values to the link.
Called when construction a link netlink message.
Must append all info type specific attributes to the message.
Referenced by rtnl_link_build_change_request().
int rtnl_link_info_ops::io_refcnt |
Reference count (internal, do not use)
Referenced by rtnl_link_unregister_info().