STRUCT RTNL_AF_OPS(9)
πΈ NAME πΈ
okay so bestie, this is the manual page for struct rtnl_af_ops β aka rtnetlink address family operations β from the Kernel API Manual. It's giving kernel-internals main character energy, and honestly? Iconic. π
β¨ SYNOPSIS β¨
here's the struct, exactly as the page lays it out:
struct rtnl_af_ops {
struct list_head list;
struct srcu_struct srcu;
int family;
int (*fill_link_af)(struct sk_buff *skb, const struct net_device
*dev, u32 ext_filter_mask);
size_t (*get_link_af_size)(const struct net_device *dev, u32
ext_filter_mask);
int (*validate_link_af)(const struct net_device *dev, const struct
nlattr *attr, struct netlink_ext_ack *extack);
int (*set_link_af)(struct net_device *dev, const struct nlattr
*attr, struct netlink_ext_ack *extack);
int (*fill_stats_af)(struct sk_buff *skb, const struct net_device
*dev);
size_t (*get_stats_af_size)(const struct net_device *dev);
};
π MEMBERS π
listβ used internally, protected by RTNL and SRCU. no cap.srcuβ used internally. that's it, that's the whole blurb. π«Άfamilyβ the address family.fill_link_afβ the function that fillsIFLA_AF_SPECwith address-family-specific netlink attributes. literally its whole job.get_link_af_sizeβ the function that calculates the size of those address-family-specific netlink attributes.validate_link_afβ validates anIFLA_AF_SPECattribute; it must checkattrfor invalid configuration settings. this is the vibe-check function, fr fr.set_link_afβ the function that parses anIFLA_AF_SPECattribute and modifiesnet_deviceaccordingly.
quick heads-up, bestie: the synopsis up top also showsfill_stats_afandget_stats_af_size, but this page's Members list doesn't give them their own blurbs β so I'm not out here inventing lore. π
π SEE ALSO π
go check out the Kernel file ./include/net/rtnetlink.h, plus these icons:
struct rtnl_msg_handler(9)struct rtnl_newlink_params(9)struct rtnl_link_ops(9)
mwah π this one's from ./include/net and it's dated October 2026. periodt. π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms