PCI_IOV_UNINIT(9)
π PCI_IOV_UNINIT π
okay so bestie, welcome to the pci(9) corner of the kernel β this one's from the Kernel Developer's Manual, and it's all about turning SR-IOV off on a PF device. no cap, it's a short one, but it matters. π«Ά
β¨ NAME β¨
PCI_IOV_UNINIT β disable SR-IOV on a PF device
πΈ SYNOPSIS πΈ
#include <sys/bus.h>
#include <dev/pci/pci_iov.h>
void
PCI_IOV_UNINIT(device_t dev);
π¦ DESCRIPTION π¦
So the PCI_IOV_UNINIT() method gets called by the PCI Single-Root I/O Virtualization (SR-IOV) infrastructure when the user asks for SR-IOV to be disabled on a Physical Function (PF). π Like, the user said "turn it off" and the infra is like "bet, calling your driver now."
When this method fires, the PF driver must:
- release any SR-IOV-related resources it has allocated, and
- disable any device-specific SR-IOV configuration in the device.
Both. Not one. Both. π
β οΈ Important vibe check: this method will only be called following a successful call to PCI_IOV_INIT(9). So don't be out here expecting it out of nowhere.
And another thing β it is not guaranteed that PCI_IOV_ADD_VF(9) will have been called for any Virtual Function (VF) after the call to PCI_IOV_INIT(9) and before the call to PCI_IOV_UNINIT. So like, don't assume any VFs actually showed up in between. π Plan accordingly.
π SEE ALSO π
π AUTHORS π
This manual page was written by Ryan Stone <rstone@FreeBSD.org>. ty bestie for the docs π«Ά
β¨ and that's the whole page, bestie β slay responsibly β¨
Debian, May 28, 2015 β PCI_IOV_UNINIT(9), signing off π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2014 Sandvine Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms