Chapter 2. The /proc File System 43
• sockstat — Provides socket statistics.
• tcp — Contains detailed TCP socket information.
• tr_rif — The token ring RIF routing table.
• udp — Contains detailed UDP socket information.
• unix — Lists UNIX domain sockets currently in use.
• wireless — Lists wireless interface data.
2.3.7. /proc/scsi/
This directory is analogous to the /proc/ide/ directory only it is for connected SCSI devices.
The primary file in this directory is /proc/scsi/scsi, which contains a list of every recognized
SCSI device. For example, if a system contains a SCSI CD-ROM, tape drive, hard drives, and RAID
controller, this file will look similar to this:
Attached devices:
Host: scsi1 Channel: 00 Id: 05 Lun: 00
Vendor: NEC Model: CD-ROM DRIVE:466 Rev: 1.06
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 06 Lun: 00
Vendor: ARCHIVE Model: Python 04106-XXX Rev: 7350
Type: Sequential-Access ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: DELL Model: 1x6 U2W SCSI BP Rev: 5.35
Type: Processor ANSI SCSI revision: 02
Host: scsi2 Channel: 02 Id: 00 Lun: 00
Vendor: MegaRAID Model: LD0 RAID5 34556R Rev: 1.01
Type: Direct-Access ANSI SCSI revision: 02
From this listing, the type of devices, as well as the model name, vendor, and SCSI channel/ID data
is available.
In addition, each SCSI driver used by the system has its own directory in /proc/scsi/, which
contains files specific to each SCSI controller that uses that driver. So, for the example system above,
aic7xxx and megaraid directories are present, as those two drivers are being utilized. The files
in each of the directories typically contain IO address range, IRQ, and statistics for the particular
SCSI controller that utilizes that driver. Each controller can report a different type and amount of
information. The Adaptec AIC-7880 Ultra SCSI host adapter’s file in this example system produces
the following output:
Adaptec AIC7xxx driver version: 5.1.20/3.2.4
Compile Options:
TCQ Enabled By Default : Disabled
AIC7XXX_PROC_STATS : Enabled
AIC7XXX_RESET_DELAY : 5
Adapter Configuration:
SCSI Adapter: Adaptec AIC-7880 Ultra SCSI host adapter
Ultra Narrow Controller
PCI MMAPed I/O Base: 0xfcffe000
Adapter SEEPROM Config: SEEPROM found and used.
Adaptec SCSI BIOS: Enabled
IRQ: 30
SCBs: Active 0, Max Active 1,
Allocated 15, HW 16, Page 255
Commenti su questo manuale