-->
Page 1179
pci | This is a listing of all PCI devices found during kernel initialization and their configuration. |
scsi | A directory with the SCSI mid-level pseudo-file and various SCSI low-level driver directories, which contain a file for each SCSI host in this system, all of which give the status of some part of the SCSI IO subsystem. These files contain ASCII structures and are therefore readable with cat. |
You can also write to some of the files to reconfigure the subsystem or switch certain features on or off. | |
scsi/scsi | This is a listing of all SCSI devices known to the kernel. The listing is similar to the one seen during bootup. scsi currently supports only the single device command, which allows root to add a hot-plugged device to the list of known devices. |
An echo `scsisingledevice1 0 5 0'> /proc/scsi/scsi will cause host scsi1 to scan on SCSI channel 0 for a device on ID 5 LUN 0. If there is already a device known on this address or the address is invalid, an error will be returned. | |
drivername | drivername can currently be NCR53c7xx, aha152x, aha1542, aha1740, aic7xxx, buslogic, eata_dma, eata_pio, fdomain, in2000, pas16, qlogic, scsi_debug, seagate, t128, u15-24f, ultrastor, or wd7000. These directories show up for all drivers that registered at least one SCSI HBA. Every directory contains one file per registered host. Every host-file is named after the number the host got assigned during initialization. |
Reading these files will usually show driver and host configuration, statistics, and so on. | |
Writing to these files allows different things on different hosts. For example, with the latency and nolatency commands, root can switch on and off command latency measurement code in the eata_dma driver. With the lockup and unlock commands, root can control bus lockups simulated by the scsi_debug driver. | |
self | This directory refers to the process accessing the /proc filesystem and is identical to the /proc directory named by the process ID of the same process. |
stat | kernel/system statistics. |
cpu 3357 0 4313 1362393 | The number of jiffies (1/100ths of a second) that the system spent in user mode, user mode with low priority (nice), system mode, and the idle task. The last value should be 100 times the second entry in the uptime pseudo-file. |
disk 0 0 0 0 | The four disk entries are not implemented at this time. I'm not even sure what this should be because kernel statistics on other machines usually track both transfer rate and I/Os per second and this only allows for one field per drive. |
page 5741 1808 | The number of pages the system paged in and the number that were paged out (from disk). |
swap 1 0 | The number of swap pages that have been brought in and out. |
intr 1462898 | The number of interrupts received from the system boot. |
ctxt 115315 | The number of context switches that the system underwent. |
btime 769041601 | Boot time in seconds since the epoch (January 1, 1970). |
sys | This directory (present since 1.3.57) contains a number of files and subdirectories corresponding to kernel variables. These variables can be read and sometimes modified using the proc filesystem and using the sysctl(2) system call. Presently, there are subdirectories kernel, net, and vm that each contain more files and subdirectories. |
kernel | This contains the files domainname, file-max, file-nr, hostname, inode-max, inode-nr, osrelease, ostype, panic, real-root-dev, securelevel, and version, with function fairly clear from the name. |
The (read-only) file file-nr gives the number of files presently opened. The file file-max gives the maximum number of open files the kernel is willing to handle. If 1024 is not enough for you, try echo 4096 > /proc/sys/kernel/file-max. | |
Similarly, the files inode-nr and inode-max indicate the present and the maximum number of inodes. |
Page 1180
The files ostype, osrelease, and version give substrings of /proc/version. | |
The file panic gives r/w access to the kernel variable panic_timeout. If this is zero, the kernel will loop on a panic; if nonzero, it indicates that the kernel should autoreboot after this number of minutes. | |
The file securelevel seems rather meaningless at present; root is just too powerful. | |
uptime | This file contains two numbers: the uptime of the system (seconds) and the amount of time spent in idle process (seconds). |
version | This string identifies the kernel version that is currently running. For instance: |
Linux version 1.0.9 (quinlan@phaze) #1 Sat May 14 01:51:54 EDT 1994 |
SEE ALSO
cat(1), find(1), free(1), mount(1), ps(1), tr(1), uptime(1), readlink(2), mmap(2), chroot(2), syslog(2), hier(7), arp(8), dmesg(8), netstat(8), route(8), ifconfig(8), procinfo(8) and much more
CONFORMS TO
This roughly conforms to a Linux 1.3.11 kernel. Please update this as necessary! Last updated for Linux 1.3.11.
CAVEATS
Note that many strings (the environment and command line) are in the internal format, with subfields terminated by null bytes, so you might find that things are more readable if you use od -c or tr "\000" "\n" to read them.
This manual page is incomplete, possibly inaccurate, and is the kind of thing that needs to be updated very often.
BUGS
The /proc filesystem may introduce security holes into processes running with chroot(2). For example, if /proc is mounted in the chroot hierarchy, a chdir(2) to /proc/1/root will return to the original root of the filesystem. This may be considered a feature instead of a bug because Linux does not yet support the fchroot(2) call.
22 July 1996
protocolsThe protocols definition file.
DESCRIPTION
This file is a plain ASCII file, describing the various DARPA Internet protocols that are available from the TCP/IP subsystem. It should be consulted instead of using the numbers in the ARPA include files or, even worse, just guessing them. These numbers will occur in the protocol field of any IP header.
Keep this file untouched because changes would result in incorrect IP packages. Protocol numbers and names are specified by the DDN Network Information Center.
Each line is of the following format:
protocol number aliases ...
The fields are delimited by spaces or tabs. Empty lines and lines starting with a hash mark (#) are ignored. Remainder of lines are also ignored from the occurrence of a hash mark.
The field descriptions are
protocol | The native name for the protocolfor example, ip, tcp, or udp. |
number | The official number for this protocol as it will appear within the IP header. |
aliases | Optional aliases for the protocol. |