Writing Device Drivers

Block Driver Structure Overview

Figure 11–1 shows data structures and routines that define the structure of a block device driver. Device drivers typically include the following:

The shaded device access section in Figure 11–1 illustrates block driver entry points.

Figure 11–1 Block Driver Roadmap

Diagram shows structures and entry points for block device drivers.

Associated with each device driver is a dev_ops(9S) structure, which in turn refers to a cb_ops(9S) structure. See Chapter 5, Driver Autoconfiguration, for details regarding driver data structures.


Note –

Some of the entry points can be replaced by nodev(9F) or nulldev(9F) as appropriate.