proc_scsi(5)

โœจ NAME โœจ

/proc/scsi/ โ€” it's giving SCSI ๐Ÿ’…

okay bestie, so this is proc_scsi, from section 5 of the File Formats Manual โ€” the file formats girlies. buckle up ๐ŸŽ€


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

/proc/scsi/

so this is a whole directory, right? and inside it lives the scsi mid-level pseudo-file plus a bunch of SCSI low-level driver directories. each of those driver dirs has a file for every SCSI host on your system, and every single one of those files tells you the status of some lil part of the SCSI IO subsystem. ๐ŸŒธ

the files are full of ASCII structures, which means โ€” bestie, this is the best part โ€” you can just read them with cat(1). no fancy tools needed. iconic.

and if reading isn't enough for you? you can also write to some of these files to reconfigure the subsystem or switch certain features on or off. main character energy fr fr ๐Ÿ‘‘

/proc/scsi/scsi

this one is a listing of all SCSI devices known to the kernel, and ngl it looks a lot like the listing you see during bootup. it's giving "greatest hits" ๐ŸŽถ

scsi currently supports only one command: add-single-device. that one lets root add a hotplugged device to the list of known devices. slay.

the command goes like this:

echo 'scsi add-single-device 1 0 5 0' > /proc/scsi/scsi

what that does โœจ: it makes host scsi1 scan on SCSI channel 0 for a device on ID 5 LUN 0. cute, right?

๐Ÿšจ but listen: if there's already a device known on this address, or if the address is just invalid, an error will be returned. no cap. so check yourself before you wreck yourself, bestie.

/proc/scsi/drivername/

so drivername can currently be any of these babies:

  • NCR53c7xx
  • aha152x
  • aha1542
  • aha1740
  • aic7xxx
  • buslogic
  • eata_dma
  • eata_pio
  • fdomain
  • in2000
  • pas16
  • qlogic
  • scsi_debug
  • seagate
  • t128
  • u15-24f
  • ultrastore
  • wd7000

these directories show up for all drivers that registered at least one SCSI HBA. every directory contains one file per registered host, and every host-file gets named after the number the host was assigned during initialization. it's giving assigned-seating-at-a-wedding ๐Ÿ’

reading these files will usually show driver and host configuration, statistics, and so on. the lore is all there ๐Ÿ“–

writing to these files does different things on different hosts. for example:

  • with the latency and nolatency commands, root can switch on and off the command latency measurement code in the eata_dma driver. toggle toggle ๐Ÿ”
  • with the lockup and unlock commands, root can control bus lockups simulated by the scsi_debug driver. simulation vibes ๐Ÿงช

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


and that's the whole page, bestie!! ๐Ÿซถ this was proc_scsi(5) from Linux man-pages 6.20, dated 2026-02-08 โ€” write that down, cite it in your essay, put it on a shirt, whatever. periodt. ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from
  • arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • ๐Ÿ“œ the page's license: GPL-3.0-or-later
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms