Download   Online Shop   Red Hat Network
Home  |  Products & Services  |  Support  |  Training  |  Partners  |  Documentation   
Red Hat Documentation

Overview | HOWTOs | mini-HOWTOs | FAQs | Linux Man-Pages

Proc pseudo file system

Chapter 7. Proc pseudo file system

The proc pseudo file system provides some useful information about the SCSI subsystem. [The kernel configuration option is CONFIG_PROC_FS and in almost all cases prof_fs should be built in.] SCSI specific information is found under the directory /proc/scsi. Probably the most commonly accessed entry is cat /proc/scsi/scsi which lists the attached SCSI devices. See Section 8.3 for more details.

The lower level drivers are allocated proc_fs entries of the form:
    /proc/scsi/<driver_name>/<scsi_adapter_number>
where the <driver_name> is something like "aic7xxx" or "BusLogic". The <scsi_adapter_number> (also known as the host number) is the same number that was discussed in the SCSI addressing section. Note that one driver may control one or more hosts. What is stored in this file is lower level driver dependent (and in the case of some adapter drivers it is possible to set parameters via this file). When reporting problems to newsgroups or maintainers it is useful to include the output of this file (e.g. cat /proc/scsi/aic7xxx/0 ).

The general information on the proc pseudo file system can be found in the kernel source file: /usr/src/linux/Documentation/filesystems/proc.txt.

The sg driver provides information about hosts and devices in directory /proc/scsi/sg . See Section 9.4.3.

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2001 Red Hat, Inc. All rights reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat