Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Writing Device Drivers
Previous Next

Overview of the Character Driver Structure

Figure 15-1 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 15-1 Character Driver Roadmap
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. These structures contain pointers to the driver entry points:

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

Previous Next

  Published under the terms fo the Public Documentation License Version 1.01. Design by Interspire