Performs housekeeping during STREAMS driver or module close operations.
#include <pse/mi.h> #include <sys/stream.h>
int mi_close_comm ( StaticPointer, Queue)
caddr_t *StaticPointer;
queue_t *Queue;
The mi_close_comm utility performs housekeeping during STREAMS driver or module close operations. It is intended to be called by the driver or module close routine. It releases the memory allocated by the corresponding call to the mi_open_comm utility, and frees the minor number for reuse.
If an mi_bufcall operation is outstanding, module resources are not freed until the mi_buffcall operation is complete.
The mi_close_comm utility is part of STREAMS kernel extensions.
The mi_close_comm utility always returns a value of zero.
List of Streams Programming References in AIX 5L Version 5.2 Communications Programming Concepts .
STREAMS Overview in AIX 5L Version 5.2 Communications Programming Concepts .
The mi_open_comm utility, mi_next_ptr utility, mi_bufcall utility.