PSA: Driver-Index is now used for binding

2 views
Skip to first unread message

David Gilhooley

unread,
Aug 9, 2021, 11:09:02 AM8/9/21
to drive...@fuchsia.dev

If you don’t write drivers feel free to disregard this email.


Hello everyone! As part of the drivers-as-components effort, we are switching over binding from the DriverManager to the Driver-Index. You will likely not see any functional changes due to this switch, but if for some reason you have a driver that is no longer binding, please let us know.


The driver index is going to be used in all Fuchsia builds to bind drivers. It is also being used in the CFv2 IsolatedDevmgr. The CFv1 IsolatedDevmgr will continue to use DriverManager’s binding because the library is being deprecated.


There are a couple cosmetic changes that will be happening. Drivers libnames will now be URLs instead of paths. For example, when you run dm dump instead of /boot/driver/my-driver.so you will see fuchsia-boot:///#driver/my-driver.so.


You will also need to make sure that you are using the fuchsia_driver_component template so that your driver has a component manifest. All current drivers have been migrated, and you will see a build error if you do not remember to use this new template. Another reminder that fx create driver will always set you up with the right templates for a new driver.


Please feel free to ask any questions about this transition! Thanks for reading and happy programming!


- David

Reply all
Reply to author
Forward
0 new messages