Header files and declarations
The global declarations required for
an MDI driver include:
Appropriate #include lines for
structures for read and write operations,
and a global
structure declared as
These are used by the STREAMS subsystem
to identify the entry points,
high and low water marks,
and the minimum and maximum packet sizes for a MDI driver.
All MDI drivers should declare
their version number in the
DDI version 8 and later MDI drivers
must also populate
structures for the driver.
The drvinfo structure must include
a pointer to the driver's
structure in the
Drivers written for DDI versions prior to version 8
must set the
variable to appropriate values.
All externally visible symbols
such as entry point routines and global structures
should be identified by a driver
the IBM Token-Ring driver,
which uses the tok prefix,
entry point routines
and structures named tokurinit,
tokuwinit, tokinfo, and so forth.
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005