devlink_por...s_pci_vf_set(9)
β¨ NAME β¨
devlink_port_attrs_pci_vf_set β bestie, this is the one that sets the PCI VF port attributes π
πΈ SYNOPSIS πΈ
void devlink_port_attrs_pci_vf_set (struct devlink_port *devlink_port ,
u32 controller , u16 pf , u16 vf , bool external );
π ARGUMENTS π
devlink_portβ okay so this is literally just the devlink port itself. the main character π«Άcontrollerβ the associated controller number for the devlink port instance. yep, that's the whole vibe β¨pfβ the associated PCI function number for the devlink port instance π¦vfβ the associated PCI VF number of a PF for the devlink port instance. and listen β the VF number starts from 0 for the first PCI virtual function, no cap, that's the rule πexternalβ this one tells you if the port is for an external controller π
π SEE ALSO π
kinda obsessed with how much cross-referencing is going on here, ngl. everything lives in the Kernel file ./net/devlink/port.c:
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_sf_set(9)devl_port_fn_devlink_set(9)devlink_port_linecard_set(9)
so yeah, that's the whole page, short and sweet, slay π this one came straight out of the Kernel API Manual (section 9, the kernel API girlies fr fr), shipped from ./net/devlink with an October 2026 date on it. go read the source bestie, iykyk πβ
π¦ 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