Device Driver Tutorial

Chapter 4 Tips for Developing Device Drivers

This chapter provides some general guidelines for writing device drivers.

The guidelines are organized into the following categories:

Device Driver Coding Tips

Use these guidelines when you write the code for your driver:

Device Driver Testing Tips

Testing a device driver can cause the system to panic and can harm the kernel.

The following tips can help you avoid problems when testing your driver:

Device Driver Debugging and Tuning Tips

The Oracle Solaris OS provides various tools for debugging and tuning your device driver: