Building a Device Driver
The third part of this book provides advice on building device drivers for the illumos Operating illumos:
Compiling, Loading, Packaging, and Testing Drivers provides information on compiling, linking, and installing a driver.
Debugging, Testing, and Tuning Device Drivers describes techniques for debugging, testing, and tuning drivers.
Recommended Coding Practices describes the recommended coding practices for writing drivers.