lpfc_sli_pro...ov_nr_virtfn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_sli_probe_sriov_nr_virtfn(9) β€” Kernel API Manual, but make it make sense πŸŽ€

okay so bestie, grab your iced coffee, because we're diving into the kernel API manual for lpfc_sli_probe_sriov_nr_virtfn(9) β€” yes that's the whole name, yes it's a mouthful, no we're not shortening it, it's iconic as-is πŸ’–


✨ NAME ✨

lpfc_sli_probe_sriov_nr_virtfn β€” literally just "Enable a number of sr-iov virtual functions". that's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

int lpfc_sli_probe_sriov_nr_virtfn (struct lpfc_hba *phba , int nr_vfn );

it's giving "one function, two args, no drama" ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • phba β€” pointer to lpfc_hba data structure. yeah. the hba. the whole main character of this struct situation πŸ‘‘
  • nr_vfn β€” number of virtual functions to be enabled. that's the count, bestie, that's how many we're turning on πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

so what does it actually do? okay so β€” this function enables the PCI SR-IOV virtual functions to a physical function. that's the whole assignment. it invokes the PCI SR-IOV api with the nr_vfn you handed it, to enable that number of virtual functions to the physical function πŸ’«

and here's the little caveat you need to know (ngl this part matters): as not all devices support SR-IOV, the return code from the pci_enable_sriov API call does not get considered as an error condition for most of the device. so like, don't panic when it comes back weird β€” that's just the design, periodt πŸ™ˆ

fr fr, read that sentence twice. the non-zero return from pci_enable_sriov is not treated as an error for most devices. no cap.

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./drivers/scsi/lpfc/lpfc_init.c and honestly? a whole friend group of functions. iykyk. here's everybody, nobody left out, we don't do that here πŸ’…

like, that's the whole roster. every single one. we did not skip a single (9), bestie 🫢


and that's the tea πŸ“ this little page lives in ./drivers/scsi/lpfc and it's dated October 2026 β€” shoutout to whoever's maintaining this in the future, you're doing amazing sweetie πŸ’œβœ¨β­

πŸ“¦ where this page comes from