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

close(D2mdi)


close -- relinquish access to an MDI device

Syntax

See close(D2) for syntax, context, and general usage information about this entry point routine in DDI drivers.

See close(D2oddi) for syntax, context, and general usage information about this entry point routine in ODDI drivers.

Usage

The close( ) entry point routine is called when the MDI device is closed. The MDI driver should shutdown the adapter so that it no longer generates interrupts or generates network traffic. The adapter will be fully re-initialized when the MDI device is re-opened and the open( ) routine is called.

The MDI driver's close( ) routine should do the following:

Since MDI drivers enforce a single open( ) per minor number, there will usually be one close( ) for each open( ). The exception is when the system is halted. In this case, DDI 7 MDI drivers may get their halt(D2mdi) routine called, and DDI 8 MDI drivers may get their config(D2mdi) routine called (with CFG_SUSPEND), but in neither instance is the close( ) routine called.

Version applicability

mdi: 1, 2, 2.1 running with ddi: 7, 7mp, 8, 8mp.

References

close(D2), close(D2str), close(D2oddi), mdi_tx_if_deinit(D3mdi), mdi_tx_if_disable(D3mdi), Intro(MDI) manual page on OpenServer 6 and the Intro(7mdi) manual page on UnixWare 7.1.4.


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