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

mdi_tx_if_disable(D3mdi)


mdi_tx_if_disable -- disable an MDI MP-aware lock structure

Synopsis

   #include <sys/types.h>
   #include <sys/stream.h>
   #include <sys/stropt.h>
   #include <sys/mdi.h>
   #include <sys/ddi.h>
   

void mdi_tx_if_disable(mdi_tx_if_t *txint);

Description

mdi_tx_if_disable( ) disables an MDI MP-aware lock that was enabled with the mdi_tx_if_enable(D3mdi) function.

Arguments


txint
pointer to the mdi_tx_if_t structure, returned by the mdi_tx_if_init(D3mdi) function.

Return values

None.

Usage

This function is typically called from the driver's close(D2mdi) entry point routine. It sets the q pointer to zero, while holding the lock. If the MDITX_MP_MT flag was set by the mdi_tx_if_init(D3mdi) function, mdi_tx_if_disable( ) waits for all process_msg calls to complete before returning to the caller. After mdi_tx_if_disable( ) returns, the lock structure has been disabled and it is safe to call the mdi_tx_if_deinit(D3mdi) function to deallocate the data structures that were used.

mdi_tx_if_disable( ) does not flush the queue. This should be done in the driver's close(D2mdi) after the mdi_tx_if_disable( ) function has returned.

Context and synchronization

Blockable context

Hardware applicability

All

Version applicability

mdi: 2, 2.1

Differences between versions

This function is not supported in MDI on SCO OpenServer systems.

References

mdi_tx_if(D3mdi), mdi_tx_if_deinit(D3mdi), mdi_tx_if_disable(D3mdi), mdi_tx_if_enable(D3mdi), mdi_tx_if_init(D3mdi),
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005