This is an index of the examples intended to demonstrate driver concepts.
Examples that showcase common driver concepts.
The skeleton driver example is a minimal driver written in DFv2.
Template driver is a minimal driver written in DFv2, and built with SDK rules, which can be used either in-tree or out-of-tree.
The simple driver examples showcases how to write a DFv1 driver and a DFv2 driver with common patterns:
The metadata example demonstrates how to define metadata types and pass metadata from a driver to its children.
Examples that showcase communication between drivers.
DFv1 and DFv2 driver examples that demonstrate a parent driver serving a Banjo transport and a child driver that connects and queries data from it.
DFv1 and DFv2 driver examples that demonstrate a parent driver serving a FIDL protocol over zircon transport and a child driver that connects and queries data from it.
DFv1 and DFv2 driver examples that demonstrate a parent driver serving a FIDL protocol over zircon transport and a child driver that connects and queries data from it.
This example demonstrates how to write a bind library.
This example demonstrates how to use the C++ and Rust constants generated from a bind library.
This example demonstrates how to write a bind library.
Here are various unit tests in the examples
The Driver Test Realm examples demonstrate how to write hermetic and non-hermetic integration tests for a driver.