PT(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’… PT(4) β€” SCSI processor type driver

Okay so bestie, this page is from the Kernel Interfaces Manual, and it's all about the pt driver. Niche? Maybe. Iconic? Absolutely. ✨

🌸 NAME 🌸

pt β€” SCSI processor type driver

πŸŽ€ SYNOPSIS πŸŽ€

device pt

πŸ’– DESCRIPTION πŸ’–

The pt driver provides support for a SCSI processor type device. These are usually scanners and other devices using the SCSI link as a communication interface with device specific commands embedded in the data stream. Like, it's giving "special little SCSI bestie" energy and we respect it. 🫢

🚨 Caveat time, bestie: a SCSI adapter must be separately configured into the system before this driver can be used. That part is not optional, fr fr.

This device supports read(2) and write(2), and the ioctl(2) calls described below.

✨ IOCTLS ✨

The following ioctl(2) calls are supported by the pt driver. They are defined in the header file <sys/ptio.h>.

  • PTIOCGETTIMEOUT β€” this ioctl allows userland applications to fetch the current pt driver read and write timeout. The value returned is in seconds. Get that timeout, queen. πŸ‘‘
  • PTIOCSETTIMEOUT β€” this ioctl allows userland applications to set the current pt driver read and write timeouts. The value should be in seconds. Set it and slay. πŸ’…

πŸ¦‹ FILES πŸ¦‹

  • /dev/ptN β€” the Nth processor device. The N is literally doing the number thing, iykyk.

🌈 SEE ALSO 🌈

  • cam(4) β€” go look, bestie 🫢

πŸ‘‘ HISTORY πŸ‘‘

The pt driver appeared in FreeBSD 2.1. Vintage behavior, honestly. ⭐


That's the whole page, bestie β€” sourced from Debian, dated March 2, 1995. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from