Sun Java Solaris Communities My SDN Account Join SDN
 
Advanced Solaris Programming
Experience isn't Always the Best Teacher
But It's Usually the Most Fun

Device Drivers

Whether you are entirely new to writing device drivers or just new to writing device drivers for the Solaris OS, these tutorials, articles and documentation can help you get started.

  • Device Driver Tutorial: This tutorial provides hands-on information on developing device drivers for the Solaris OS, including step-by-step descriptions of writing, building, installing, loading, and testing real device drivers. These instructions can help you understand how drivers control devices. Also included is an overview of the driver development environment, tools available for developing drivers, and techniques for avoiding some driver development problems.

  • Writing Device Drivers: Information is provided on developing drivers for the Solaris OS for these types of devices: character-oriented, block-oriented, USB, and SCSI target and HBA. A common driver programming approach is described that allows drivers to be written without concern for platform-specific issues such as endianness and data ordering. Other topics include porting Solaris drivers to a 64-bit environment; driver autoconfiguration; device context management; compilation, installation, testing of drivers; and debugging drivers.

  • Porting Device Drivers for the Solaris Operating System to 64-Bit x86 Architecture: Find out how to modify 32-bit device drivers that run on the Solaris OS to be compatible with the 64-bit Solaris 10 OS on x86 platforms.

  • Inside OpenSolaris: Introduction to Solaris Drivers: This explanation of basic driver programming assumes you are familiar with device drivers and devices and in general. The author discusses the Solaris 10 OS and Linux 2.6.

  • Inside OpenSolaris: Solaris Driver Programming: This article describes Solaris device drivers in terms that a developer of Linux device drivers can understand. Basically, the author attempts to answer the question, "A Linux driver does xxx. How does the Solaris OS do it?"

  • DTrace Case Study for Developers: This case study focuses on leveraging the DTrace capability for device driver development.

  • Driver Development Forum

» For more information, check out the driver development section of the Solaris Developer web site.

ABI Tools

Sun is committed to ensuring binary compatibility for Solaris applications by means of a well-defined Solaris ABI and tools to help developers write ABI-compliant (and thus stable) applications. Appcert, which is bundled with the Solaris 10 OS, is an ABI utility that performs a static check of an application. Once an application passes appcert, the application is guaranteed to run on newer Solaris versions.

For more information see:

Migration From Linux

  • Chapter 3, "Migrating From Linux to the Solaris Operating System" of Migration Resource Guide (pdf): This covers the similarities and differences between the two environments: architecture, memory management, system calls. Also provides information on the Linux and Solaris application development environments.
  • Inside OpenSolaris: Solaris Driver Programming: Author describes Solaris device drivers in terms that a developer of Linux device drivers will understand. Basically, the article attempts to answer the question, "A Linux driver does xxx. How does the Solaris OS do it?"

Migration From Windows

Migration From Tru64 UNIX

  • Migration From Tru64 UNIX to the Solaris Operating System (pdf): A fictional case study illustrates the methodology, tools, and best practices used to migrate a Tru64 environment to the Solaris environment. It examines the migration of a simple, custom-written application that used a Sybase database to store information about a company's inventory as well as client-specific data. This application was converted to run under the Solaris OS and was integrated with directory services. Additionally, the database vendor was changed from Sybase to Oracle.
  • Download: Solaris Migration Tool for HP-UX and HP-Tru64

Migration From HP-UX

  • Migration From HP-UX to the Solaris Operating System (pdf): Using a fictional case study that draws from several actual customer migration project, this article illustrates the methodology, tools, and best practices used to migrate an HP/UX environment to the Solaris environment. The most significant of these projects involved migrating a commercial-off-the-shelf (COTS) integrated-accounts solution. This overview of the case study describes justifying, architecting, and implementing the migration, with suggestions for managing the new Solaris environment, and a summary of the successful results of the migration.
  • Download: Solaris Migration Tool for HP-UX and HP-Tru64

Sun Tech Days

Sun Tech Days are globally delivered two-day developer conferences that provide vision, direction, and "how-to" hands-on training for developers.
» Learn more about upcoming Sun Tech Days in your area.

Articles

» More Technical Articles

Play to Win with Solaris 10
Release your Linux or Solaris 8/9 applications on Solaris 10 on x86/x64 to receive a FREE Sun Fire X2100 dual-core server.
Get Certified
Popular Sun professional certification exams delivered in new languages.