XPT(4)
β¨ NAME β¨
okay so bestie, welcome to the xpt page β section 4, Kernel Interfaces Manual β and it's literally the CAM transport layer interface. That's the whole name, periodt. π
π¦ SYNOPSIS π¦
None.
Like, literally none, bestie. The synopsis ate and left no crumbs. π
π DESCRIPTION π
The xpt driver provides a way for userland applications to issue certain CAM CCBs to the kernel. iconic behavior, honestly. β¨
π¨ real talk, bestie: since the xpt driver allows direct access to the CAM subsystem, system administrators should exercise caution when granting access to this driver. If used improperly, this driver can allow userland applications to crash a machine or cause data loss. not me warning you dramatically, but like... fr fr. π
π§ KERNEL CONFIGURATION π§
There is no kernel configuration required for the xpt driver. It is enabled when SCSI support is enabled in the kernel. There is one instance of the xpt driver per CAM transport layer instance. Since there is currently only one CAM transport layer, there will only be one instance of this driver. so rn it's one instance and done β no extra config arc, no cap. π«Ά
π IOCTLS π
Two ioctls are serving looks here, bestie:
CAMIOCOMMANDβ this ioctl takes certain kinds of CAM CCBs and passes them through to the CAM transport layer for action. Only the following CCB types are supported:XPT_SCAN_BUSXPT_RESET_BUSXPT_SCAN_LUNXPT_ENG_INQXPT_ENG_EXECXPT_DEBUGXPT_DEV_MATCHXPT_PATH_INQ
The above CCBs are the only ones supported since it makes more sense to send them through a generic passthrough device rather than a passthrough device tied to a particular underlying SCSI device. that's the reasoning, iykyk. π
CAMGETPASSTHRUβ this ioctl takes anXPT_GDEVLISTCCB, and returns the passthrough device corresponding to the device in question. cute, direct, no drama. π
π FILES π
/dev/xpt0β character device node for thexptdriver. π
π©Ί DIAGNOSTICS π©Ί
None.
literally none. the diagnostics said "no thoughts, head empty." π
π SEE ALSO π
go read these too, bestie:
π°οΈ HISTORY π°οΈ
The CAM transport layer driver first appeared in FreeBSD 3.0. vintage but still iconic. π
π AUTHORS π
Kenneth Merry <ken@FreeBSD.org>
big shoutout to Kenneth Merry β bestie wrote the page, we love to see it. π«Ά
Debian β’ October 10, 1998 β’ XPT(4) β mwah, bestie, that's the page π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1998 Kenneth D. Merry
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms