42 Chapter 2. The /proc File System
nowerr 0 0 1 rw
number 0 0 3 rw
pio_mode write-only 0 255 w
slow 0 0 1 rw
unmaskirq 0 0 1 rw
using_dma 1 0 1 rw
2.3.5. /proc/irq/
This directory is used to set IRQ to CPU affinity, which allows you to connect a particular IRQ to only
one CPU. Alternatively, you can exclude a CPU from handling any IRQs.
Each IRQ has its own directory, allowing for individual configuration of each IRQ. The
/proc/irq/prof_cpu_mask file is a bitmask that contains the default values for the
smp_affinity file in the IRQ directory. The values in smp_affinity specify which CPUs handle
that particular IRQ.
More information is available in the /usr/src/linux-
2.4/Documentation/filesystems/proc.txt file.
2.3.6. /proc/net/
This directory provides a comprehensive look at various networking parameters and statistics. Each
of the files covers a specific range of information related to networking on the system:
• arp — Contains the kernel’s ARP table. This file is particularly useful for connecting hardware
address to an IP address on a system.
• atm — A directory containing files with various Asynchronous Transfer Mode (ATM) settings and
statistics. This directory is primarily used with ATM networking and ADSL cards.
• dev — Lists the various network devices configured on the system, complete with transmit and
receive statistics. This file will quickly tell you the number of bytes each interface has sent and
received, the number of packets inbound and outbound, the number of errors seen, the number of
packets dropped, and more.
• dev_mcast — Displays the various Layer2 multicast groups each device is listening to.
• igmp — Lists the IP multicast addresses which this system joined.
• ip_fwchains — If ipchains are in use, this virtual file reveals any current rule.
• ip_fwnames — If ipchains are in use, this virtual file lists all firewall chain names.
• ip_masquerade — Provides a table of masquerading information.
• ip_mr_cache — List of the multicast routing cache.
• ip_mr_vif — List of multicast virtual interfaces.
• netstat — Contains a broad yet detailed collection of networking statistics, including TCP time-
outs, SYN cookies sent and received, and much more.
• psched — List of global packet scheduler parameters.
• raw — List of raw device statistics.
• route — Displays the kernel’s routing table.
• rt_cache — Contains the current routing cache.
• snmp — List of Simple Network Management Protocol (SNMP) data for various networking pro-
tocols in use.
Commenti su questo manuale