devlink_port_attrs_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to Kernel API Manual ✨ β€” this is devlink_port_attrs_set(9), and it's genuinely so straightforward you're gonna slay it. No cap, it's a tiny one. πŸŽ€


🌸 NAME 🌸

devlink_port_attrs_set β€” literally just set port attributes πŸ’… that's the whole vibe.


✨ SYNOPSIS ✨

void devlink_port_attrs_set (struct devlink_port *devlink_port , const
       struct devlink_port_attrs *attrs );

notice how it returns void? yeah. no return value, no drama, she just does the thing and leaves πŸ‘‘ periodt.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • devlink_port β€” the devlink port itself 🫢 like, the actual port object you're setting stuff on. main character energy.
  • attrs β€” the devlink port attrs πŸ’– the attribute struct you're handing over. this is the ~content~, devlink_port is the ~canvas~. iykyk.
ngl both of these are just "devlink port" and "devlink port attrs" in the original and honestly? the naming is so self-explanatory it ate. πŸ”₯

🌈 SEE ALSO 🌈

the whole friend group 🫢 β€” go say hi:

also the kernel file to peek at if you're nosy (affectionate): ./net/devlink/port.c 🧚


aaand that's the page!! you understood it, you ate, you left no crumbs πŸ’€βœ¨

cute lil sign-off: this gem dropped October 2026, lives in the source tree at ./net/devlink, and it's brought to you by the Kernel API Manual besties. mwah πŸ’‹πŸŒΈ
πŸ“¦ where this page comes from