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:
NCR53c7xxaha152xaha1542aha1740aic7xxxbuslogiceata_dmaeata_piofdomainin2000pas16qlogicscsi_debugseagatet128u15-24fultrastorewd7000
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
latencyandnolatencycommands, root can switch on and off the command latency measurement code in theeata_dmadriver. toggle toggle ๐ - with the
lockupandunlockcommands, root can control bus lockups simulated by thescsi_debugdriver. 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
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms