> 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/man4/pt.4.md).

# pt.4

`pt` — SCSI 处理器类型驱动程序

## 名称

`pt`

## 概要

`device pt`

## 描述

`pt` 驱动程序为 SCSI 处理器类型设备提供支持。这类设备通常是扫描仪以及其他使用 SCSI 链路作为通信接口、将设备特定命令嵌入数据流的设备。

在使用此驱动程序之前，必须单独将 SCSI 适配器配置到系统中。

此设备支持 read(2) 和 write(2)，以及下文所述的 ioctl(2) 调用。

## IOCTLS

`pt` 驱动程序支持以下 ioctl(2) 调用。它们定义于头文件：

`#include <sys/ptio.h>`

**PTIOCGETTIMEOUT** 此 ioctl 允许用户态应用程序获取当前 `pt` 驱动程序的读写超时。返回值以秒为单位。

**PTIOCSETTIMEOUT** 此 ioctl 允许用户态应用程序设置当前 `pt` 驱动程序的读写超时。值以秒为单位。

## 文件

**`/dev/pt`** `N` 第 `N` 个处理器设备。

## 参见

cam(4)

## 历史

`pt` 驱动程序出现于 FreeBSD 2.1。


---

# 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/man4/pt.4.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.
