Inspect hardware interrupt counts per CPU and the devices or handlers associated with each IRQ.
Read the information from procfs.
Which file should be read?
/proc/interrupts reports IRQ numbers, per-CPU counts, controller information, and associated devices.
Detailed explanation
/proc/ioportsIncorrect. /proc/ioports describes allocated I/O port ranges.
Incorrect. /proc/ioports describes allocated I/O port ranges.
/proc/dmaIncorrect. /proc/dma describes DMA channels.
Incorrect. /proc/dma describes DMA channels.
/proc/modulesIncorrect. /proc/modules lists loaded kernel modules.
Incorrect. /proc/modules lists loaded kernel modules.
/proc/interruptsCorrect. /proc/interrupts contains interrupt assignments and counters.
Correct. /proc/interrupts contains interrupt assignments and counters.
Try it yourself
An example you can run in a temporary verification environment.
head /proc/interruptsExpected result
CPU列と割り込みカウンタ(仮想環境では内容が限定される場合がある)Key points
- interrupts describes IRQs
- ioports describes I/O addresses
- modules lists loaded modules
Notes
- Environment: Linux / procfs
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.