STRUCT DEVLINK_PORT_PCI_VF_ATTRS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the <struct devlink_port_pci_vf_attrs> page from the Kernel API Manual πŸ’… this little cutie holds a devlink port's PCI VF attributes, and honestly? it's giving "small struct, big responsibilities." let's get into it 🫢


🌸 NAME 🌸

struct devlink_port_pci_vf_attrs β€” devlink port's PCI VF attributes, no cap, that's literally it πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

struct devlink_port_pci_vf_attrs {
    u32 controller;
    u16 pf;
    u16 vf;
    u8 external:1;
 };

look at her. four members. immaculate. ✨


πŸ‘‘ Members πŸ‘‘

  • controller β€” the associated controller number. like, which controller this port is vibing with πŸ¦‹
  • pf β€” the associated PCI function number for the devlink port instance. yes queen, function number, we respect it πŸ’œ
  • 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, so don't come in here counting from one, that's not the vibe πŸ™ˆ
  • external β€” when this bit is set, it indicates if a port is for an external host controller. it's a u8 bitfield with exactly :1 bit, so it's doing the absolute most with the absolute least πŸ’€

🌈 SEE ALSO 🌈

bestie, the whole devlink family reunion is here. all of these live in the kernel file ./include/net/devlink.h ⭐

  • struct devlink_port_pci_pf_attrs(9)
  • struct devlink_port_pci_sf_attrs(9)
  • struct devlink_port_attrs(9)
  • struct devlink_linecard_ops(9)
  • struct devlink_dpipe_field(9)
  • struct devlink_dpipe_header(9)
  • struct devlink_dpipe_match(9)
  • struct devlink_dpipe_action(9)
  • struct devlink_dpipe_value(9)
  • struct devlink_dpipe_entry(9)
  • struct devlink_dpipe_dump_ctx(9)
  • struct devlink_dpipe_table(9)
  • struct devlink_dpipe_table_ops(9)
  • struct devlink_dpipe_headers(9)
  • struct devlink_resource_size_params(9)
  • struct devlink_flash_notify(9)
  • struct devlink_param(9)
  • struct devlink_flash_update_params(9)
  • struct devlink_region_ops(9)
  • struct devlink_port_region_ops(9)
  • struct devlink_health_reporter_ops(9)
  • struct devlink_trap_metadata(9)
  • struct devlink_trap_policer(9)
  • struct devlink_trap_group(9)
  • struct devlink_trap(9)
  • struct devlink_port_ops(9)

that's the whole group chat and every single one of them ate πŸ”₯


ok that's the page! no warnings, no bugs, no exit statuses to freak out about β€” just pure struct serenity 🧚

and that's a wrap, bestie πŸ’– this came to you from ./include/net, dated October 2026, and yes the header and footer both said struct devli...pci_vf_attrs(9) because the terminal truncates names like it's personally attacking us 😭 anyway, stan devlink, periodt πŸ“πŸŒΈ

πŸ“¦ where this page comes from