Proc/Driver; Proc/Fs - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Chapter 5. The proc File System
example, on a standard system containing PCI and USB buses, current data on each of these
buses is available within a subdirectory within
.
/proc/bus/pci/
The subdirectories and files available within
connected to the system. However, each bus type has at least one directory. Within these bus
directories are normally at least one subdirectory with a numerical name, such as
contain binary files.
For example, the
/proc/bus/usb/
any USB buses, as well as the drivers required for them. The following is a sample listing of a
directory:
/proc/bus/usb/
total 0 dr-xr-xr-x 1 root root 0 May 3 16:25 001 -r--r--r-- 1 root root 0
May 3 16:25 devices -r--r--r-- 1 root root 0 May 3 16:25 drivers
The
/proc/bus/usb/001/
file identifies the USB root hub on the motherboard.
The following is a example of a
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc=
0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00
MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 0.00 S: Product=USB UHCI
Root Hub S: SerialNumber=d400 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#=
0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I)
Atr=03(Int.) MxPS= 8 Ivl=255ms
3.3.

/proc/driver/

This directory contains information for specific drivers in use by the kernel.
A common file found here is
Time Clock (RTC), the device that keeps the time while the system is switched off. Sample
output from
/proc/driver/rtc
rtc_time : 16:21:00 rtc_date : 2004-08-31 rtc_epoch : 1900 alarm : 21:16:27
DST_enable : no BCD : yes 24hr : yes square_wave : no alarm_IRQ : no
update_IRQ : no periodic_IRQ : no periodic_freq : 1024 batt_status : okay
For more information about the RTC, refer to the following installed documentation:
/usr/share/doc/kernel-doc-<version>/Documentation/rtc.txt
3.4.

/proc/fs

This directory shows which file systems are exported. If running an NFS server, typing
68
/proc/bus/
/proc/bus/
subdirectory contains files that track the various devices on
directory contains all devices on the first USB bus and the
/proc/bus/usb/devices
which provides output from the driver for the system's Real
rtc
looks like the following:
by the same name, such as
vary depending on the devices
file:
.
, which
001
devices
cat

Advertisement

Table of Contents
loading

Table of Contents