devlink_port_attrs_set(9)
π devlink_port_attrs_set β a Kernel API Manual moment
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_portis 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:
devlink_port_init(9)devlink_port_fini(9)devl_port_register_with_ops(9)devlink_port_register_with_ops(9)devl_port_unregister(9)devlink_port_unregister(9)devlink_port_type_eth_set(9)devlink_port_type_ib_set(9)devlink_port_type_clear(9)devlink_port_attrs_pci_pf_set(9)devlink_port_attrs_pci_vf_set(9)devlink_port_attrs_pci_sf_set(9)devl_port_fn_devlink_set(9)devlink_port_linecard_set(9)
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
- 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