> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man9/pci_iov_uninit.9.md).

# PCI\_IOV\_UNINIT.9

`PCI_IOV_UNINIT` — 在 PF 设备上禁用 SR-IOV

## 名称

`PCI_IOV_UNINIT`

## 概要

```c
#include <sys/bus.h>
#include <dev/pci/pci_iov.h>

void
PCI_IOV_UNINIT(device_t dev)
```

## 描述

`PCI_IOV_UNINIT` 方法在用户请求在物理功能（PF）上禁用 SR-IOV 时由 PCI 单根 I/O 虚拟化（SR-IOV）基础设施调用。调用此方法时，PF 驱动程序必须释放其分配的所有与 SR-IOV 相关的资源，并禁用设备中任何设备特定的 SR-IOV 配置。

此方法仅会在成功调用 [PCI\_IOV\_INIT(9)](/man/man9/pci_iov_init.9.md) 之后被调用。不保证在调用 [PCI\_IOV\_INIT(9)](/man/man9/pci_iov_init.9.md) 之后和调用 `PCI_IOV_UNINIT` 之前，已对任何虚拟功能（VF）调用过 [PCI\_IOV\_ADD\_VF(9)](/man/man9/pci_iov_add_vf.9.md)。

## 参见

[pci(9)](/man/man9/pci.9.md), [PCI\_IOV\_ADD\_VF(9)](/man/man9/pci_iov_add_vf.9.md), [PCI\_IOV\_INIT(9)](/man/man9/pci_iov_init.9.md)

## 作者

本手册页由 Ryan Stone <rstone@FreeBSD.org> 编写。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man9/pci_iov_uninit.9.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
