Driver For | Pci Device [cracked]
She searched for the PCI probe function. static int rtl8169_pci_probe(struct pci_dev *pdev, ...) This was the moment of first contact. When Linux sees the device's Vendor ID (0x10EC) and Device ID (0x8168), it bows and hands control to this function.
She pushed the patch to the netdev mailing list. The subject line: [PATCH net] r8169: add missing wmb() before re-enabling interrupts on RTL8168 VER_52 . driver for pci device
Her fingers danced again. cat /sys/bus/pci/devices/0000:04:00.0/uevent . The kernel spat back the raw truth: DRIVER=r8169 . The generic driver. The workhorse. She searched for the PCI probe function
Then she found it. The interrupt handler: rtl8169_interrupt . On a packet receive, the chip raises a line on the PCI bus. The kernel calls this routine. The routine reads a status register via MMIO. Then it does the dance: acknowledge the interrupt, schedule an NAPI poll, clear the bit. She pushed the patch to the netdev mailing list
