devlink_por...s_pci_pf_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, grab your lil kernel-hacker notebook because we're in the Kernel API Manual today and this one is genuinely a whole vibe ✨ It's a tiny function, she's not doing the most, but she's important β€” she stamps the PCI PF port attributes onto a devlink port. Let's get into it 🫢


✨ NAME ✨

devlink_port_attrs_pci_pf_set β€” literally just sets the PCI PF port attributes πŸ’– no cap, that's the entire job.


πŸŽ€ SYNOPSIS πŸŽ€

void devlink_port_attrs_pci_pf_set (struct devlink_port *devlink_port ,
u32 controller , u16 pf , bool external );

she's a void, she returns nothing, she simply does πŸ‘‘


🌸 ARGUMENTS 🌸

  • devlink_port β€” the devlink port in question, the main character of this whole operation πŸ’…
  • controller β€” a u32 with the associated controller number for the devlink port instance πŸ”₯
  • pf β€” a u16, the associated PCI function number for the devlink port instance 🌈
  • external β€” a bool that indicates if the port is for an external controller πŸ‘€ (yes this matters, don't skip it)

πŸ¦‹ SEE ALSO πŸ¦‹

the friend group 🫢 β€” head over to the kernel file ./net/devlink/port.c and meet the whole squad:

like, the entire devlink port cinematic universe fr fr 🎬


ngl this one's short and sweet β€” she sets those PF attrs and dips. no error codes, no environment variables, no exit statuses, just vibes and attributes πŸ’œ

okay that's the page bestie, ily, go read ./net/devlink from October 2026 β€” that's the source and date, mwah πŸ’‹ πŸŽ€ 🌸

πŸ“¦ where this page comes from