devlink_por...s_pci_vf_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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