STRUCT DEVLINK_PORT_PCI_PF_ATTRS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're in the Kernel API Manual and this page is literally all about struct devlink_port_pci_pf_attrs β€” the devlink port's PCI PF attributes, no cap. it's giving "small struct, big job" energy and honestly? iconic. πŸŽ€


✨ NAME ✨

struct devlink_port_pci_pf_attrs β€” the devlink port's PCI PF attributes, periodt. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

look at her. three members, one lil bitfield, flawless. 🌸


πŸ‘‘ Members πŸ‘‘

  • controller β€” the associated controller number. it's the controller she's rolling with, okay?! 🫢
  • pf β€” the associated PCI function number for the devlink port instance. yes, that PF. the one your port instance is attached to. πŸ’…
  • external β€” when this is set, it indicates if a port is for an external host controller. it's a single bit and it's carrying a whole lot of "wait, is this port for an external host controller?" on its tiny u8 external:1 shoulders. πŸ˜­πŸ‘‘

🌈 SEE ALSO 🌈

the whole devlink extended family showed up to the group chat, so let's list every single one because we do not leave anyone on read πŸ’œ

  • struct devlink_port_pci_vf_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)

and where does she live? kernel file ./include/net/devlink.h, obvi. that's her address, that's her home, that's her main character location. πŸ¦‹βœ¨


heads up bestie: if you actually go touch this in real life, the source of truth is that kernel file ./include/net/devlink.h β€” always check there, iykyk. πŸ’€

kisses and bye-byes, this page came from ./include/net and was dated October 2026 β€” drink some water, hydrate your kernel, and slay the rest of your day πŸ”₯πŸ§šπŸ’–

πŸ“¦ where this page comes from