pci_enable_sriov(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pci_enable_sriov (9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the pci_enable_sriov(9) page, like, the kernel API manual moment where we turn on SR-IOV and let the hardware live its best multi-function life ✨


🌸 NAME 🌸

pci_enable_sriov β€” enable the SR-IOV capability πŸŽ€

like literally that's it, that's the whole vibe. you're enabling SR-IOV. slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

int pci_enable_sriov (struct pci_dev *dev , int nr_virtfn );

look at that signature, so clean, so iconic πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the PCI device πŸ’» ngl it's just the device, the main character of this whole function
  • nr_virtfn β€” number of virtual functions to enable 🧚 how many VFs you want, fr fr, you gotta say the number

πŸ’œ DESCRIPTION πŸ’œ

Returns 0 on success, or negative on failure. periodt. that's the whole description, no cap 🫢

like, that's the entire contract: 0 means you ate, negative means something went sideways 😭

## πŸ’€ SEE ALSO πŸ’€

Kernel file ./drivers/pci/iov.c β€” that's where the magic lives, iykyk πŸ”₯

And the whole friend group, going in the order they're listed:

go read those too, bestie, they're all part of the same SR-IOV cinematic universe πŸŒˆπŸ‘‘


so yeah, that's the page πŸŽ€ it came from ./drivers/pci, dated October 2026, and it's filed under pci_enable_sriov(9) β€” love that for us, mwah πŸ’‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from