First page Back Continue Last page Overview Graphics
Example of device driver
To illustrate how drivers are implemented to work with the device model, we will study the source code of a driver for a USB network card
- It is USB device, so it has to be a USB device driver
- It is a network device, so it has to be a network device
- Most drivers rely on a bus infrastructure (here, USB) and register themselves in a framework (here, network)
We will only look at the device driver side, and not the adapter driver side
The driver we will look at is drivers/net/usb/rtl8150.c