hisi_qm_sriov_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hisi_qm_sriov_enable πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the actual manual name, we're being official today πŸ’… β€” and this one little page is all about one function that does Exactly One Thing.


✨ NAME ✨

hisi_qm_sriov_enable β€” enable virtual functions πŸ¦‹


✨ SYNOPSIS ✨

int hisi_qm_sriov_enable (struct pci_dev *pdev , int max_vfs );

look at her. two arguments, one int coming back at you. she's simple, she's focused, she's the moment. πŸŽ€


✨ ARGUMENTS ✨

  • pdev β€” the PCIe device πŸ‘‘ like, the actual hardware bestie we're doing the thing to.
  • max_vfs β€” the number of virtual functions to enable πŸ”’ that's how many VFs you're asking for, bestie, so choose wisely.

✨ DESCRIPTION ✨

okay so the tea β˜• β€” this function returns the number of enabled VFs. that's the whole win. that's the slay.

but listen, there are two situations where it does NOT do that and instead returns failure 😭:

  • if there are VFs enabled already (like, girl, they're already on, we can't re-enable what's enabled πŸ™ˆ), or
  • if max_vfs is more than the total number of VFs the device can enable (you're asking for more than the device can give, and no amount of manifesting is fixing that πŸ’€).
lowkey important: those are the only two failure conditions on the page, so don't go inventing more, iykyk.

✨ SEE ALSO ✨

okay this list is giving group chat with 38 members πŸ”₯ β€” every single one of these is invited:

bestie if you read all of these you will be so powerful. no cap. 🌈


and that's the page!! 🫢 this little angel lives over in ./drivers/crypto/hisilicon, and this particular glow-up is dated October 2026. mwah, go enable some virtual functions responsibly πŸ’‹ ✨

πŸ“¦ where this page comes from