devl_port_fn_devlink_set(9)
β¨ devl_port_fn_devlink_set(9) β¨
okay so first things first, this is a page from the Kernel API Manual, section 9 β yes bestie, we're in the deep kernel lore now, man 9 territory, very main character of you π
πΈ NAME πΈ
devl_port_fn_devlink_set β the function that attaches a peer devlink instance to a port function π«Ά like it's literally matchmaking but for kernel objects
π¦ SYNOPSIS π¦
int devl_port_fn_devlink_set (struct devlink_port *devlink_port , struct devlink *fn_devlink );
yep that's the whole signature, no cap β it returns an int, and it takes two pointers, and that's the vibe π
π ARGUMENTS π
devlink_portβ the devlink port πΈ this is the one getting a new peer attached to it, she's the main character herefn_devlinkβ the devlink instance to attach π this is the peer being introduced to the port function
ngl bestie, that's it β those are the only two args, the kernel kept it cute and simple β¨
π SEE ALSO π
this is where it gets iconique, because there's a whole friend group of related functions and they all live in the kernel file ./net/devlink/port.c π₯ so if you're reading this one, you're probably gonna need her sisters too:
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_set(9)devlink_port_attrs_pci_pf_set(9)devlink_port_attrs_pci_vf_set(9)devlink_port_attrs_pci_sf_set(9)devlink_port_linecard_set(9)
and that's the whole page, periodt π§π
cute little sign-off to close it out: this one comes from ./net/devlink, dated October 2026 β so mark your calendars, bestie, and go attach some peer devlink instances responsibly ππ
π¦ 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