> 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/iflib.9.md).

# iflib.9

`iflib` — 网络接口驱动程序框架

## 名称

`iflib`

## 描述

`iflib` 是一个为 FreeBSD 编写网络接口驱动程序的框架。它旨在消除现代网络接口设备通常需要的大量样板代码，让驱动程序作者能够专注于其硬件所需的特定代码。

`iflib` 有三个逻辑组件，每个组件都在其各自的手册页中描述。它们是：

[**iflibdi(9)**](/man/man9/iflibdi.9.md) 设备无关函数，用于将 `iflib` 集成到 FreeBSD 网络栈的其余部分。

[**iflibdd(9)**](/man/man9/iflibdd.9.md) 设备相关函数，用于编写新的基于 `iflib` 的驱动程序。

[**iflibtxrx(9)**](/man/man9/iflibtxrx.9.md) 设备相关的发送和接收函数，用于编写新的基于 `iflib` 的驱动程序。

## 参见

[iflib(4)](/man/man4/iflib.4.md), [iflibdd(9)](/man/man9/iflibdd.9.md), [iflibdi(9)](/man/man9/iflibdi.9.md), [iflibtxrx(9)](/man/man9/iflibtxrx.9.md), [ifnet(9)](/man/man9/ifnet.9.md)

## 作者

Benno Rice <benno@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/iflib.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.
