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

mdi_close_file(D3mdi)


mdi_close_file -- close regular file opened with mdi_open_file

Synopsis

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

void mdi_close_file(mdi_file_t handle);

Description

mdi_close_file( ) closes the file opened with the mdi_open_file(D3mdi) function.

Arguments


handle
The mdi_file_t handle returned by the mdi_open_file(D3mdi) function.

Return values

None.

Usage

This function is typically called from the MDI driver's _load(D2mdi) entry point after the information required to initialize the driver has been obtained.

Context and synchronization

Blockable context at a time when it is safe to lower the system interrupt priority (ipl) to plbase.

Hardware applicability

All

Version applicability

mdi: 2, 2.1

Differences between versions

In MDI version 2, the syntax of mdi_close_file( ) was
   void mdi_close_file(void *ptr);
ptr is the pointer to the buffer obtained with mdi_open_file(D3mdi).

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

References

_load(D2mdi), mdi_open_file(D3mdi), mdi_read_file(D3mdi)

Examples

See the mdi_open_file(D3mdi) page for a code fragment that illustrates mdi_close_file( ).
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005