|
|
#include <sys/types.h> #include <sys/stream.h> #include <sys/stropts.h> #include <sys/ddi.h>
Comparison of (STREAMS DDI 7, DDI 8, and ODDI entry point routines)
Routine | Context | DDI 7 | DDI 8 | ODDI | All |
---|---|---|---|---|---|
Notes | |||||
close(D2str) | blockable | rn | r | rn | syntax varies |
config(D2str) | blockable | -- | rh | -- | |
devinfo(D2str) | blockable | on | r | -- | syntax varies |
init(D2str) | initalization | on | -- | r | |
intr(D2str) | interrupt | oh | oh | oh | syntax varies |
_load(D2str) | blockable | o | r | -- | |
open(D2str) | blockable | rn | r | r | syntax varies |
put(D2str) | interrupt | rn | r | r | |
srv(D2str) | interrupt | on | o | o | |
_unload(D2str) | blockable | o | r | -- |
streamtab(D4str) structure that contains pointers to qinit(D4str) structures.
DDI 8 STREAMS drivers can use streamtab for all entry point routines or can use the drvops(D4) structure used to declare non-STREAMS entry points for standard entry point routines like open( ) and close( ) and use the streamtab structure only for STREAMS-specific entry points like put(D2str) and srv(D2str).
See Section D2mdi manual pages in Section D2mdi manual pages for additional details about using these entry points in MDI drivers on both SVR5 and SCO OpenServer drivers.
Developing STREAMS modules and drivers in Developing STREAMS modules and drivers
``Context of a driver'' in HDK Technical Reference
``DDI interface versioning'' in HDK Technical Reference
``ODDI driver interface version for SCO OpenServer 5'' in HDK Technical Reference
``STREAMS in DDI 8'' in Developing STREAMS modules and drivers