DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
DDI: 8 sample driver

ddi8_sample.c code

The ddi8_sample.c -- DDI: 8 sample source code is structured as a set of entry point routines (see ``Entry-point routines'') and subordinate routines, with header files and declarations that preceed all the routines. Intro(D2) includes a table of the DDI entry points that shows which entry points are required and which are optional for DDI 8 drivers. For an overview of driver structure, see ``Driver structure''.

Theoretically, DDI 8 drivers can name their entry point routines any way they want, this sample driver adheres to the scheme of using the driver's prefix(D1) and the standard entry point routine name. This practice makes the driver code easier to read and maintain. The exception to this scheme are the _load( ) and _unload( ) entry point routines, which must not be prefixed for DDI 8 drivers.

Note also that all structures and manifest constants are also prefixed as recommended in ``Structure''.


© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005