devlink_por...s_pci_pf_set(9)
π devlink_port_attrs_pci_pf_set(9)
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β au32with the associated controller number for the devlink port instance π₯pfβ au16, the associated PCI function number for the devlink port instance πexternalβ aboolthat 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:
devlink_port_init(9)devlink_port_fini(9)devl_port_register_with_ops(9)devlink_port_register_with_ops(9)devl_port_unregister(9)devlink_port_unregister(9)devlink_port_type_eth_set(9)devlink_port_type_ib_set(9)devlink_port_type_clear(9)devlink_port_attrs_set(9)devlink_port_attrs_pci_vf_set(9)devlink_port_attrs_pci_sf_set(9)devl_port_fn_devlink_set(9)devlink_port_linecard_set(9)
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
- 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