目录
计算机结构
- 查看中断号
[waterruby@fedora38-2023-9-24 ~]$ cat /proc/interrupts
CPU0 CPU1
1: 293 128 IO-APIC 1-edge i8042
8: 0 0 IO-APIC 8-edge rtc0
9: 0 0 IO-APIC 9-fasteoi acpi
12: 0 144 IO-APIC 12-edge i8042
16: 0 0 IO-APIC 16-fasteoi i801_smbus
22: 0 0 IO-APIC 22-fasteoi virtio4
24: 0 0 PCI-MSIX-0000:00:02.0 0-edge PCIe PME, aerdrv
25: 0 0 PCI-MSIX-0000:00:02.1 0-edge PCIe PME, aerdrv
26: 0 0 PCI-MSIX-0000:00:02.2 0-edge PCIe PME, aerdrv
27: 0 0 PCI-MSIX-0000:00:02.3 0-edge PCIe PME, aerdrv
28: 0 0 PCI-MSIX-0000:00:02.4 0-edge PCIe PME, aerdrv
29: 0 0 PCI-MSIX-0000:00:02.5 0-edge PCIe PME, aerdrv
30: 0 0 PCI-MSIX-0000:00:02.6 0-edge PCIe PME, aerdrv
31: 0 0 PCI-MSIX-0000:00:02.7 0-edge PCIe PME, aerdrv
32: 0 0 PCI-MSIX-0000:00:03.0 0-edge PCIe PME, aerdrv
33: 0 0 PCI-MSIX-0000:00:03.1 0-edge PCIe PME, aerdrv
34: 0 0 PCI-MSIX-0000:00:03.2 0-edge PCIe PME, aerdrv
35: 0 0 PCI-MSIX-0000:00:03.3 0-edge PCIe PME, aerdrv
36: 0 0 PCI-MSIX-0000:00:03.4 0-edge PCIe PME, aerdrv
37: 0 0 PCI-MSIX-0000:00:03.5 0-edge PCIe PME, aerdrv
38: 0 0 PCI-MSIX-0000:06:00.0 0-edge virtio5-config
39: 23 13 PCI-MSIX-0000:06:00.0 1-edge virtio5-input
40: 0 0 PCI-MSI-0000:00:1f.2 0-edge ahci[0000:00:1f.2]
41: 36 0 PCI-MSIX-0000:02:00.0 0-edge xhci_hcd
42: 0 0 PCI-MSIX-0000:02:00.0 1-edge xhci_hcd
43: 0 0 PCI-MSIX-0000:02:00.0 2-edge xhci_hcd
44: 0 0 PCI-MSIX-0000:03:00.0 0-edge virtio2-config
45: 0 13 PCI-MSIX-0000:03:00.0 1-edge virtio2-virtqueues
46: 0 0 PCI-MSIX-0000:04:00.0 0-edge virtio3-config
47: 3695 0 PCI-MSIX-0000:04:00.0 1-edge virtio3-req.0
48: 0 9190 PCI-MSIX-0000:04:00.0 2-edge virtio3-req.1
49: 0 0 PCI-MSIX-0000:00:01.0 0-edge virtio0-config
50: 140 9341 PCI-MSIX-0000:00:01.0 1-edge virtio0-control
51: 0 0 PCI-MSIX-0000:00:01.0 2-edge virtio0-cursor
52: 0 0 PCI-MSIX-0000:01:00.0 0-edge virtio1-config
53: 8967 345 PCI-MSIX-0000:01:00.0 1-edge virtio1-input.0
54: 158 9534 PCI-MSIX-0000:01:00.0 2-edge virtio1-output.0
55: 0 206 PCI-MSI-0000:00:1b.0 0-edge snd_hda_intel:card0
NMI: 0 0 Non-maskable interrupts
LOC: 62753 91262 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 0 0 Performance monitoring interrupts
IWI: 2 12 IRQ work interrupts
RTR: 0 0 APIC ICR read retries
RES: 331 649 Rescheduling interrupts
CAL: 18689 12848 Function call interrupts
TLB: 66 15 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
DFR: 0 0 Deferred Error APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 5 5 Machine check polls
HYP: 1 1 Hypervisor callback interrupts
ERR: 0
MIS: 0
PIN: 0 0 Posted-interrupt notification event
NPI: 0 0 Nested posted-interrupt event
PIW: 0 0 Posted-interrupt wakeup event
比如acpi使用了中断号9
- dma
waterruby@fedora38-2023-9-24 ~]$ cat /proc/dma
4: cascade
- io
[waterruby@fedora38-2023-9-24 ~]$ cat /proc/ioports
0000-0000 : PCI Bus 0000:00
0000-0000 : dma1
0000-0000 : pic1
0000-0000 : timer0
0000-0000 : timer1
0000-0000 : keyboard
0000-0000 : keyboard
0000-0000 : rtc0
0000-0000 : dma page reg
0000-0000 : pic2
0000-0000 : dma2
0000-0000 : fpu
0000-0000 : vga+
0000-0000 : serial
0000-0000 : QEMU0002:00
0000-0000 : fw_cfg_io
0000-0000 : 0000:00:1f.0
0000-0000 : ACPI PM1a_EVT_BLK
0000-0000 : ACPI PM1a_CNT_BLK
0000-0000 : ACPI PM_TMR
0000-0000 : ACPI GPE0_BLK
0000-0000 : iTCO_wdt.1.auto
0000-0000 : iTCO_wdt
0000-0000 : iTCO_wdt.1.auto
0000-0000 : iTCO_wdt
0000-0000 : 0000:00:1f.3
0000-0000 : i801_smbus
0000-0000 : PCI conf1
0000-0000 : PCI Bus 0000:00
0000-0000 : PCI Bus 0000:01
0000-0000 : PCI Bus 0000:02
0000-0000 : PCI Bus 0000:03
0000-0000 : PCI Bus 0000:04
0000-0000 : PCI Bus 0000:05
0000-0000 : PCI Bus 0000:06
0000-0000 : PCI Bus 0000:07
0000-0000 : PCI Bus 0000:08
0000-0000 : PCI Bus 0000:09
0000-0000 : PCI Bus 0000:0a
0000-0000 : PCI Bus 0000:0b
0000-0000 : 0000:00:1f.2
0000-0000 : ahci
0000-0000 : PCI Bus 0000:0c
0000-0000 : PCI Bus 0000:0d
0000-0000 : PCI Bus 0000:0e
标签:00,MSIX,0000,Bus,手册,unix,edge,linux,PCI
From: https://www.cnblogs.com/waterruby/p/17725646.html