STRUCT RTNL_NEWLINK_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” this is the struct rtnl_newlink_params(9) page, and it's all about struct rtnl_newlink_params, aka the parameters of rtnl_link_ops::newlink(). no cap, that's the whole name vibe. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the struct, copied exactly because we do not mess with source code, periodt:

       struct rtnl_newlink_params {
           struct net *src_net;
           struct net *link_net;
           struct net *peer_net;
           struct nlattr **tb;
           struct nlattr **data;
        };

πŸ’– Members πŸ’–

okay, member-by-member vibe check:

  • src_net β€” the source netns of the rtnetlink socket. literally that. πŸ’«
  • link_net β€” the link netns by IFLA_LINK_NETNSID; it's NULL if not specified. πŸ™ˆ
  • peer_net β€” the peer netns. short and iconic. πŸ‘‘
  • tb β€” the IFLA_* attributes. all the IFLA_* bestie. πŸŽ€
  • data β€” the IFLA_INFO_DATA attributes. yep, that exact one. πŸ“

🌈 SEE ALSO 🌈

go peek at these, iykyk:

  • Kernel file ./include/net/rtnetlink.h
  • struct rtnl_msg_handler(9)
  • struct rtnl_link_ops(9)
  • struct rtnl_af_ops(9)
bestie reminder: every one of those references is in the original, so don't skip them. πŸ’€βœ¨

mwah πŸ’‹ β€” source/version vibe: ./include/net, date: October 2026; that's the cute little footer moment, and now you're all caught up. slay. πŸ’…

πŸ“¦ where this page comes from