Go to main content

Writing Device Drivers in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Overview of the Character Driver Structure

    Character Driver Roadmap shows data structures and routines that define the structure of a character device driver. Device drivers typically include the following elements:

  • Device-loadable driver section

  • Device configuration section

  • Character driver entry points

The shaded device access section in the following figure illustrates character driver entry points.

Figure 13  Character Driver Roadmap

image:Diagram shows structures and entry points for character             device drivers.

Associated with each device driver is a dev_ops(9S) structure, which in turn refers to a cb_ops(9S) structure.


Note -  Some of these entry points can be replaced with nodev(9F) or nulldev(9F) as appropriate.