Device Driver Tutorial

Exit Print View

Updated: July 2014
 
 

Writing the Template Driver

This section describes the entry points and data structures that are included in this driver and shows you how to define them. All of these data structures and almost all of these entry points are required for any character device driver.

    This section describes the following entry points and data structures:

  • Loadable module configuration entry points

  • Autoconfiguration entry points

  • User context entry points

  • Character and block operations structure

  • Device operations structure

  • Module linkage structures

First, create a directory where you can develop your driver. This driver is named dummy because this driver does not do any real work. Next, open a new text file named dummy.c.