Pyro device driver API
|
A busmanager is a normal kernel module that is located in the /System/drivers/dev/bus directory . The only difference is that it calls the register_busmanager() function:
The pzName parameter is the same name that the device drivers pass to the get_busmanager() function. The pfHooks pointer points to the entrypoint of the busmanager. It should return a structure with entries to the exported functions of the busmanager:
Once you have called the register_busmanager() function the kernel will not unload the driver until the next reboot. It will also call the device_uninit() function of the driver before shutdown/reboot to give it the possibility so save its settings.