From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Examine PCI related API in network drivers

Examine PCI related API in network drivers - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Examine PCI related API in network drivers

- [Instructor] Network PCI devices, are a great place for us to investigate a little bit about PCI devices and we see a little bit more about network drivers. We'll look at the struct pci_driver. We'll look at the PCI id table and the PCI probe function. Here's the struck pci_driver struct from the e1000e driver. Its got the name. That's a string e1000e, it's got the ID table that we'll look at in a second. It's got the probe function and then it's got other functions for when it's removed and PMs for power management and shutting down the device, and if there's errors. The PCI ID table and a PCI driver is a big list of the PCI devices that this driver can handle. It provides like vendor and device numbers that can be matched against what a device provides. So the driver provides that. And then when the kernel discovers a PCI device it can look through all the drivers tables and find…

Contents