Modifying entry point routines
The entry point routine set for DDI 8
is significantly different from that used
for DDI 7, earlier DDI versions,
and SCO OpenServer 5; see
``Entry-point routines''.
Intro(D2)
includes a table that summarizes the changes,
and
``Driver structure''
give an overview of the structure of a DDI 8 driver.
To summarize the major changes in the entry point set
beginning with DDI 8:
-
The same entry point routines are used
for block and character drivers.
-
The
open(D2)
and
close(D2)
entry point routines have the same syntax and behavior
for STREAMS and non-STREAMS drivers.
-
The named entry point scheme used for
SCO OpenServer 5 and pre-DDI 8 drivers
has been replaced
by the
drvinfo(D4)
and
drvops(D4)
kernel structures
that point to the entry point routines.
-
DDI entry point routines should return 0 on success.
If an error occurs,
the entry point should return an error number
from those listed on the
errnos(D5)
manual page
rather than setting errors in the
u.u_error
member.
The one exception is the
biostart(D2)
entry point routine,
which does not return anything,
but instead sets error information in the
b_error
member of the buf structure.
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005