October 2017
Intermediate to advanced
586 pages
14h 8m
English
driver_register() is the low-level function used to register a device driver with the bus. It adds the driver to the bus's list of drivers. When a device driver is registered with the bus, the core walks through the bus's list of devices and calls the bus's match callback for each device that does not have a driver associated with it in order to find out if there are any devices that the driver can handle.
When a match occurs, the device and the device driver are bound together. The process of associating a device with a device driver is called binding.
Back to the registration of drivers with our packt bus; one has to use packt_register_driver(struct packt_driver *driver), which is a wrapper around driver_register() ...