STRUCT DEVLINK_PORT_PCI_SF_ATTRS(9)
β¨ struct devlink_port_pci_sf_attrs(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for struct devlink_port_pci_sf_attrs π
this is the one about devlink port's PCI SF attributes, and honestly? it's giving "small struct, big responsibilities" π
πΈ NAME πΈ
struct devlink_port_pci_sf_attrs β literally the devlink port's PCI SF attributes π that's it, that's the name, no cap.
π¦ SYNOPSIS π¦
here's the whole vibe, character for character, don't touch it:
struct devlink_port_pci_sf_attrs {
u32 controller;
u32 sf;
u16 pf;
u8 external:1;
};
like... four little members and they're all main characters π
π Members π
controllerβ the associated controller number β¨ that's the whole assignment, bestie, it'su32and it's doing its job.sfβ the associated SF number of a PF for the devlink port instance π yes, SF number, of a PF, for the devlink port instance β every word of that matters, iykyk.pfβ the associated PCI function number for the devlink port instance π«Ά au16and honestly? humble. iconic. also a PCI function number, for the devlink port instance, in case you missed it.externalβ when set, indicates if a port is for an external host controller π it's au8bitfield with:1, so it literally only gets one bit to make its whole point. when set β external host controller. slay.
π§ reminder: this is a struct definition, not a function β these are members, so there's no return value, no exit status, nothing to call. just vibes and fields, periodt.
π₯ SEE ALSO π₯
okay this list is LONG and we are NOT skipping a single one, bestie β the kernel file is ./include/net/devlink.h and everything below is fr fr related π
struct devlink_port_pci_pf_attrs(9)struct devlink_port_pci_vf_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)
like, the whole devlink friend group showed up to the group chat πΈπ¦ twenty-six of them plus the current one and every single one got an invite. obsessed.
and that's the page!! π cute lil sign-off for the credits: this one lives under ./include/net and the date on it is October 2026, so yeah β go read struct devlink_port_pci_sf_attrs(9) and stay hydrated ππ
β¨
π¦ 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