DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

Intro(D3)


Intro -- introduction to kernel functions

Synopsis

   #include <sys/types.h>
   #include <sys/ddi.h>

Description

This section describes the kernel utility functions available for use by kernel-level device drivers and STREAMS modules.

Usage

The beginning of every DDI 8 driver source file must include the following lines before any header files are #included:
   #define _KERNEL
   #define _DDI 8
The _DDI line gives the ``major'' version number, such as 7 or 8; it does not use full version numbers such as 8.1 or 8mp. These definitions can instead be given as arguments to the -D option of the cc line to compile the driver:
   cc -D_KERNEL -D_DDI=8

The _DDI=version definition is optional for DDI versions prior to version 8.

Drivers and STREAMS modules must not call any kernel functions other than the ones described in this section, or corresponding sections Section D3mdi manual pages in Section D3mdi manual pages, Section D3sdi manual pages in Section D3sdi manual pages, and Section D3str manual pages in Section D3str manual pages. Only functions with "Version applicability" that includes the interface version(s) used by the driver or module may be called.

Each function manual page also identifies the ``Context of a driver'' in HDK Technical Referencecontext in which the function can run. The entry point routine manual pages in Section D2mdi manual pages in Section D2mdi manual pages, Section D2sdi manual pages in Section D2sdi manual pages, and Section D2str manual pages in Section D2str manual pages identify the context of each routine. Only functions that are valid for the context of an entry point routine can be used in that routine. This list references articles in ``HDK Technical Reference'' in HDK Technical Reference.

Groupings of HDK manual pages by functionality

References

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